Function at 0x106cc2b
Capabilities:
Receive http request

Disassembly:
mov eax, 0x1099ffa
call fcn.01077478
sub esp, 0x40
mov eax, dword [0x10a6184]
push ebx
push esi
mov esi, 0x10a6184
cmp eax, esi
mov dword [ebp - 0x30], ecx
mov ebx, 0x1007888
je 0x106cc73
test byte [eax + 0x1c], 1
je 0x106cc73
cmp byte [eax + 0x19], 5
jb 0x106cc73
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push 0x70
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0108046a
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
push edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], edi
je 0x106cc8d
cmp ecx, edi
jne 0x106ccea
mov dword [ebp - 0x10], 0x80070057
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x20]
push eax
call fcn.0106ba8e
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
pop edi
je 0x106d18b
test byte [eax + 0x1c], 1
je 0x106d18b
movzx edx, byte [eax + 0x19]
xor ebx, ebx
cmp dword [ebp - 0x10], ebx
setl bl
dec ebx
and ebx, 3
inc ebx
inc ebx
cmp edx, ebx
jl 0x106d18b
test ecx, ecx
je 0x106d168
mov edx, dword [ecx]
jmp 0x106d16a
mov dword [eax], edi
mov dword [ecx], edi
push 0xa
lea ecx, [ebp - 0x4c]
call fcn.01048629
mov eax, dword [0x10a6184]
cmp eax, esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x2c], edi
je 0x106cd26
test byte [eax + 0x1d], 4
je 0x106cd26
cmp byte [eax + 0x19], 5
jb 0x106cd26
push ebx
push 0x71
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009ab7
mov eax, dword [0x10a6184]
mov ebx, dword [sym.imp.HTTPAPI.dll_HttpReceiveRequestEntityBody]
mov dword [ebp - 0x24], 0x2000
mov edi, 0x1007888
mov ecx, dword [ebp + 8]
cmp dword [ebp - 0x18], ecx
jae 0x106d008
push dword [ebp - 0x24]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [ebp - 0x1c], eax
je 0x106cf7e
mov esi, dword [ebp - 0x30]
xor eax, eax
push eax
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x1c]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 0x18]
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
add eax, ecx
cmp eax, dword [ebp + 8]
ja 0x106cf9b
mov eax, dword [ebp - 0x28]
cmp eax, 0xea
jne 0x106cdfa
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
je 0x106cdbc
test byte [eax + 0x1d], 4
je 0x106cdbc
cmp byte [eax + 0x19], 5
jb 0x106cdbc
push ecx
push edi
push 0x74
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009b3f
push dword [ebp - 0x1c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x14]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x1c], eax
je 0x106cfd6
mov ecx, dword [ebp - 0x14]
push 0
lea edx, [ebp - 0x14]
push edx
push ecx
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp - 0x24], ecx
push dword [ebp + 0xc]
push dword [esi + 0x18]
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
cmp eax, 0x26
jne 0x106ce0b
mov dword [ebp - 0x2c], 1
jmp 0x106cf15
test eax, eax
je 0x106ce1b
mov dword [ebp - 0x10], 0x8000ffff
jmp 0x106cf15
test ecx, ecx
je 0x106cf15
lea eax, [ebp - 0x18]
push eax
push ecx
push dword [ebp - 0x18]
call fcn.0106bef9
mov dword [ebp - 0x10], eax
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
je 0x106ce77
test byte [eax + 0x1d], 4
je 0x106ce77
movzx ecx, byte [eax + 0x19]
xor edx, edx
cmp dword [ebp - 0x10], edx
setl dl
dec edx
and edx, 3
inc edx
inc edx
cmp ecx, edx
jl 0x106ce77
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push edi
push 0x76
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010190e1
mov eax, dword [0x10a6184]
cmp dword [ebp - 0x10], 0
jl 0x106cf1a
push 8
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
je 0x106ce9c
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov esi, eax
jmp 0x106ce9e
xor esi, esi
test esi, esi
mov dword [ebp - 0x34], esi
jne 0x106ced9
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
je 0x106ced0
test byte [eax + 0x1d], 4
je 0x106ced0
cmp byte [eax + 0x19], 2
jb 0x106ced0
push edi
push 0x77
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009ab7
mov eax, dword [0x10a6184]
mov dword [ebp - 0x10], 0x8007000e
jmp 0x106cf1a
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0102d974
mov eax, dword [0x10a6184]
and dword [ebp - 0x1c], 0
cmp eax, 0x10a6184
je 0x106cf57
test byte [eax + 0x1d], 4
je 0x106cf1a
cmp byte [eax + 0x19], 5
jb 0x106cf1a
push dword [esi + 4]
push dword [esi]
push esi
push edi
push 0x78
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010190e1
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
je 0x106cf57
test byte [eax + 0x1d], 4
je 0x106cf57
movzx ecx, byte [eax + 0x19]
xor edx, edx
cmp dword [ebp - 0x10], edx
setl dl
dec edx
and edx, 3
inc edx
inc edx
cmp ecx, edx
jl 0x106cf57
push dword [ebp - 0x28]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push edi
push 0x79
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0106ae69
push dword [ebp - 0x1c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
cmp dword [ebp - 0x10], 0
mov eax, dword [0x10a6184]
pop ecx
jl 0x106d008
cmp dword [ebp - 0x2c], 0
je 0x106cd38
jmp 0x106d008
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
je 0x106d001
test byte [eax + 0x1d], 4
je 0x106d001
cmp byte [eax + 0x19], 2
jb 0x106d001
push edi
push 0x72
jmp 0x106cff1
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
je 0x106cfcd
test byte [eax + 0x1d], 4
je 0x106cfcd
cmp byte [eax + 0x19], 2
jb 0x106cfcd
push dword [ebp + 8]
push ecx
push dword [ebp - 0x18]
push edi
push 0x73
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010190e1
mov eax, dword [0x10a6184]
mov dword [ebp - 0x10], 0x800700ea
jmp 0x106d008
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
je 0x106d001
test byte [eax + 0x1d], 4
je 0x106d001
cmp byte [eax + 0x19], 2
jb 0x106d001
push edi
push 0x75
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009ab7
mov eax, dword [0x10a6184]
mov dword [ebp - 0x10], 0x8007000e
mov esi, dword [ebp - 0x18]
cmp esi, dword [ebp + 8]
jbe 0x106d03c
cmp eax, 0x10a6184
je 0x106d035
test byte [eax + 0x1d], 4
je 0x106d035
cmp byte [eax + 0x19], 2
jb 0x106d035
push dword [ebp + 8]
push esi
push edi
push 0x7a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100ef6e
mov dword [ebp - 0x10], 0x800700ea
cmp dword [ebp - 0x10], 0
jl 0x106d094
push esi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [ebp - 0x20], eax
jne 0x106d057
mov dword [ebp - 0x10], 0x8007000e
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
je 0x106d094
test byte [eax + 0x1d], 4
je 0x106d094
movzx ecx, byte [eax + 0x19]
xor edx, edx
cmp dword [ebp - 0x10], edx
setl dl
dec edx
and edx, 3
inc edx
inc edx
cmp ecx, edx
jl 0x106d094
push dword [ebp - 0x20]
push esi
push dword [ebp - 0x10]
push edi
push 0x7b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010190e1
and dword [ebp + 8], 0
jmp 0x106d137
call fcn.0106ca74
mov ebx, eax
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
je 0x106d0d0
test byte [eax + 0x1d], 4
je 0x106d0d0
cmp byte [eax + 0x19], 5
jb 0x106d0d0
push dword [ebx + 4]
push dword [ebx]
push ebx
push edi
push 0x7c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010190e1
cmp dword [ebp - 0x20], 0
je 0x106d12a
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
mov esi, dword [ebx]
lea edx, [ecx + eax]
mov ecx, dword [ebx + 4]
mov eax, ecx
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
je 0x106d11f
test byte [eax + 0x1d], 4
je 0x106d11f
cmp byte [eax + 0x19], 5
jb 0x106d11f
push edx
push 0x1007888
push 0x7d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009b3f
mov eax, dword [ebx + 4]
add dword [ebp + 8], eax
mov edi, 0x1007888
test ebx, ebx
je 0x106d137
push 1
mov ecx, ebx
call fcn.0106ba65
cmp dword [ebp - 0x44], 0
lea ecx, [ebp - 0x4c]
jne 0x106d09d
call fcn.0106be2d
cmp dword [ebp - 0x10], 0
jl 0x106cc94
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
mov dword [esi], eax
mov eax, dword [ebp - 0x18]
mov dword [ecx], eax
jmp 0x106cca6
xor edx, edx
test esi, esi
je 0x106d172
mov ecx, dword [esi]
jmp 0x106d174
xor ecx, ecx
push edx
push ecx
push dword [ebp - 0x10]
push 0x1007888
push 0x7e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010190e1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14