Function at 0x404660
Capabilities:
Receive http request

Disassembly:
push 0xffffffffffffffff
push 0x4da9b8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x54d158]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, dword [0x554638]
push 0x9d0
xor ebp, ebp
push ebp
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], 0x9d0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebp
jne 0x4046cb
lea eax, [ebp + 8]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
push 0x9d0
push ebp
push esi
mov dword [esp + 0x34], ebp
call fcn.004b0770
add esp, 0xc
push ebp
lea eax, [esp + 0x24]
push eax
push 0x9d0
push esi
push 1
push ebp
push ebp
push edi
call dword [sym.imp.HTTPAPI.dll_HttpReceiveHttpRequest]
mov edi, eax
call fcn.004a08e6
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
je 0x4048b3
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
push edi
lea ecx, [esp + 0x20]
push str.HttpReceiveHttpRequest___d__n
push ecx
mov dword [esp + 0x44], 0
call fcn.00410070
mov ebx, dword [esp + 0x28]
add esp, 0xc
add ebx, 0xfffffff0
push ebx
call fcn.0040ff10
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40475f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x38], 0xffffffff
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404780
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
xor ebx, ebx
cmp edi, ebx
jne 0x40481f
mov eax, dword [esi + 0x24]
sub eax, 3
je 0x4047e1
sub eax, 1
je 0x4047c5
sub eax, 2
je 0x4047b8
mov eax, dword [esp + 0x14]
push ebx
push 0x1f7
push eax
mov edx, str.Not_Implemented
mov ecx, esi
call fcn.00404ba0
add esp, 0xc
jmp 0x4047f0
mov ecx, dword [esp + 0x14]
mov edx, esi
call fcn.004053a0
jmp 0x4047f0
mov ecx, dword [esp + 0x14]
push ebx
push 0xc8
push ecx
mov edx, 0x51c3b0
mov ecx, esi
call fcn.00404ba0
add esp, 0xc
jmp 0x4047f0
mov edx, dword [esp + 0x14]
push edx
mov ecx, esi
call fcn.004048c0
add esp, 4
mov edi, eax
cmp edi, ebx
je 0x404874
cmp esi, ebx
je 0x404809
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
cmp edi, 0xea
jne 0x404862
mov eax, dword [esi + 0x14]
mov ebp, dword [esi + 0x10]
mov edi, dword [esp + 0x20]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
jne 0x40487e
mov edi, 8
jmp 0x404809
cmp edi, 0x4cd
jne 0x4047f6
cmp ebp, ebx
jne 0x404874
cmp dword [esp + 0x28], ebx
je 0x4047f6
mov edi, dword [esp + 0x18]
mov dword [esp + 0x28], ebx
xor ebp, ebp
push edi
push ebx
push esi
call fcn.004b0770
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
add esp, 0xc
push ebx
lea ecx, [esp + 0x24]
push ecx
push edi
push esi
push 1
push edx
push ebp
push eax
call dword [sym.imp.HTTPAPI.dll_HttpReceiveHttpRequest]
mov edi, eax
call fcn.004a08e6
cmp eax, ebx
jne 0x40470b
push 0x80004005
call fcn.004103e0
int3