Function at 0x4053a0
Capabilities:
Receive http request

Disassembly:
push 0xffffffffffffffff
push 0x4da988
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x54d158]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x54d158]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
xor esi, esi
mov ebx, ecx
mov dword [esp + 0x1c], ebx
mov edi, edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], esi
mov byte [esp + 0x24], 0
mov dword [esp + 0x48], esi
test byte [edi], 1
je 0x4055da
push 0x800
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
cmp ebp, esi
jne 0x405452
mov esi, 8
call fcn.004014f0
test ebp, ebp
je 0x405435
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esp + 0x38], 0x10
jb 0x40573a
mov eax, dword [esp + 0x24]
push eax
call fcn.004a08dc
add esp, 4
jmp 0x40573a
push 0x800
push esi
push ebp
mov dword [esp + 0x20], esi
call fcn.004b0770
mov ecx, dword [edi + 0x14]
mov edx, dword [edi + 0x10]
add esp, 0xc
push esi
lea eax, [esp + 0x18]
push eax
push 0x800
push ebp
push esi
push ecx
push edx
push ebx
call dword [sym.imp.HTTPAPI.dll_HttpReceiveRequestEntityBody]
mov esi, eax
test esi, esi
jne 0x405520
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4054e0
add eax, 1
push eax
call fcn.004a08e1
mov esi, eax
add esp, 4
test esi, esi
je 0x4054e0
mov eax, dword [esp + 0x14]
push eax
push ebp
push esi
call fcn.004b07f0
mov ecx, dword [esp + 0x20]
mov eax, esi
add esp, 0xc
mov byte [esi + ecx], 0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4054c1
sub eax, edx
push eax
push esi
lea eax, [esp + 0x28]
call fcn.0040e190
push esi
call fcn.004a08dc
add esp, 4
push 0x800
push 0
push ebp
mov dword [esp + 0x20], 0
call fcn.004b0770
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
add esp, 0xc
push 0
lea edx, [esp + 0x18]
push edx
push 0x800
push ebp
push 0
push eax
push ecx
push ebx
call dword [sym.imp.HTTPAPI.dll_HttpReceiveRequestEntityBody]
mov esi, eax
test esi, esi
je 0x40548b
cmp esi, 0x26
jne 0x405421
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40556f
add eax, 1
push eax
call fcn.004a08e1
mov esi, eax
add esp, 4
test esi, esi
je 0x40556f
mov edx, dword [esp + 0x14]
push edx
push ebp
push esi
call fcn.004b07f0
mov eax, dword [esp + 0x20]
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
mov edx, esi
mov byte [esi + eax], 0
call fcn.0040de20
push esi
call fcn.004a08dc
add esp, 4
lea edx, [esp + 0x20]
push edx
push 0xc8
push ebx
mov edx, 0x51c3b0
mov ecx, edi
call fcn.00404ba0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x405421
lea ecx, [esp + 0x18]
call fcn.00410110
push esi
lea eax, [esp + 0x1c]
push str.HttpSendHttpResponse_failed_with___d__n
push eax
mov byte [esp + 0x54], 1
call fcn.00410070
add esp, 8
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00410050
call fcn.00401500
add esp, 4
lea ecx, [esp + 0x18]
call fcn.00410230
jmp 0x405421
mov eax, dword [edi + 0x1bc]
cmp eax, esi
je 0x405736
cmp dword [eax], esi
jne 0x405736
cmp word [edi + 0x1b8], si
mov dword [esp + 0x18], esi
jbe 0x405680
xor ebx, ebx
mov eax, dword [edi + 0x1bc]
mov ecx, dword [eax + ebx + 0xc]
add eax, ebx
mov dword [esp + 0x14], ecx
mov ebp, dword [eax + 8]
add ecx, 1
push ecx
call fcn.004a08e1
mov esi, eax
add esp, 4
test esi, esi
je 0x405663
mov ecx, dword [esp + 0x14]
push ecx
push ebp
push esi
call fcn.004b07f0
mov edx, dword [esp + 0x20]
mov eax, esi
mov byte [esi + edx], 0
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405644
sub eax, edx
push eax
push esi
lea eax, [esp + 0x28]
call fcn.0040e190
push esi
call fcn.004a08dc
add esp, 4
mov eax, dword [esp + 0x18]
movzx ecx, word [edi + 0x1b8]
add eax, 1
add ebx, 0x20
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x405603
mov ebx, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
push 0xc8
push ebx
mov edx, 0x51c3b0
mov ecx, edi
call fcn.00404ba0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x405435
call fcn.004a08e6
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4056be
push 0x80004005
call fcn.004103e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push esi
lea ecx, [esp + 0x1c]
push str.HttpSendHttpResponse_failed_with___d__n
push ecx
mov byte [esp + 0x54], 2
call fcn.00410070
mov edi, dword [esp + 0x24]
add esp, 0xc
add edi, 0xfffffff0
push edi
call fcn.0040ff10
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40570f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x48], 0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405435
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
jmp 0x405435
mov esi, dword [esp + 0x1c]
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004ac89d
add esp, 0x38
ret