Function at 0x403730
Capabilities:
Terminate process

Disassembly:
sub esp, 8
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push eax
push 5
lea eax, [edx + 0x74]
push str.host
push eax
mov esi, ecx
call dword [sym.imp.php5.dll_zend_hash_find]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [sym.imp.php5.dll__erealloc]
mov edx, dword [sym.imp.MSVCR110.dll_realloc]
add esp, 0x10
test eax, eax
jne 0x4039ae
mov ecx, dword [esi]
test ecx, ecx
jne 0x4037b4
mov dword [esi + 4], ecx
lea edi, [ecx + 4]
mov dword [esi + 8], 0x4e
test ebx, ebx
je 0x4037ac
push 0x4f
push ecx
call edx
add esp, 8
test eax, eax
jne 0x4037da
push str.Out_of_memory_n
call dword [sym.imp.MSVCR110.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR110.dll_fprintf]
add esp, 8
push 1
call dword [sym.imp.MSVCR110.dll_exit]
push 0
push 0x4f
push 0
jmp 0x4037d5
mov edi, dword [esi + 4]
add edi, 4
cmp edi, dword [esi + 8]
jb 0x4037e2
lea eax, [edi + 0x80]
mov dword [esi + 8], eax
inc eax
test ebx, ebx
je 0x4037d1
push eax
push ecx
jmp 0x403783
push 0
push eax
push ecx
call ebp
add esp, 0xc
mov edx, dword [sym.imp.MSVCR110.dll_realloc]
mov dword [esi], eax
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [ecx + eax], 0x74736f48
mov ecx, dword [esi]
mov dword [esi + 4], edi
test ecx, ecx
jne 0x403821
mov dword [esi + 4], ecx
lea edi, [ecx + 2]
mov dword [esi + 8], 0x4e
test ebx, ebx
je 0x403819
push 0x4f
push ecx
call edx
add esp, 8
test eax, eax
jne 0x403850
jmp 0x40378c
push 0
push 0x4f
push 0
jmp 0x40384b
add edi, 2
cmp edi, dword [esi + 8]
jb 0x403852
lea eax, [edi + 0x80]
mov dword [esi + 8], eax
inc eax
test ebx, ebx
je 0x403847
push eax
push ecx
call edx
add esp, 8
test eax, eax
jne 0x403850
jmp 0x40378c
push 0
push eax
push ecx
call ebp
add esp, 0xc
mov dword [esi], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov edx, 0x203a
mov word [ecx + eax], dx
mov edx, dword [esi]
mov eax, dword [esp + 0x10]
mov dword [esi + 4], edi
test edx, edx
jne 0x4038b3
mov dword [esi + 4], edx
mov edi, dword [eax]
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x403875
sub edi, ecx
mov eax, 0x4e
cmp edi, 0x4e
jb 0x40388e
lea eax, [edi + 0x80]
mov dword [esi + 8], eax
inc eax
test ebx, ebx
je 0x4038ac
push eax
mov eax, dword [sym.imp.MSVCR110.dll_realloc]
push 0
call eax
add esp, 8
test eax, eax
jne 0x4038fe
jmp 0x40378c
push 0
push eax
push 0
jmp 0x4038f9
mov ecx, dword [eax]
lea eax, [ecx + 1]
mov dword [esp + 0x14], eax
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4038c0
sub ecx, dword [esp + 0x14]
add edi, ecx
cmp edi, dword [esi + 8]
jb 0x403900
lea eax, [edi + 0x80]
mov dword [esi + 8], eax
inc eax
test ebx, ebx
je 0x4038f5
push eax
mov eax, dword [sym.imp.MSVCR110.dll_realloc]
push edx
call eax
add esp, 8
test eax, eax
jne 0x4038fe
jmp 0x40378c
push 0
push eax
push edx
call ebp
add esp, 0xc
mov dword [esi], eax
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [esp + 0x14], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403910
sub ecx, dword [esp + 0x14]
mov eax, dword [esi]
add eax, dword [esi + 4]
push ecx
push edx
push eax
call sub.MSVCR110.dll_memcpy
mov ecx, dword [esi]
add esp, 0xc
mov dword [esi + 4], edi
test ecx, ecx
jne 0x403962
mov dword [esi + 4], ecx
lea edi, [ecx + 2]
mov dword [esi + 8], 0x4e
test ebx, ebx
je 0x40395a
push 0x4f
push ecx
call dword [sym.imp.MSVCR110.dll_realloc]
add esp, 8
test eax, eax
jne 0x403995
jmp 0x40378c
push 0
push 0x4f
push 0
jmp 0x403990
add edi, 2
cmp edi, dword [esi + 8]
jb 0x403997
lea eax, [edi + 0x80]
mov dword [esi + 8], eax
inc eax
test ebx, ebx
je 0x40398c
push eax
push ecx
call dword [sym.imp.MSVCR110.dll_realloc]
add esp, 8
test eax, eax
jne 0x403995
jmp 0x40378c
push 0
push eax
push ecx
call ebp
add esp, 0xc
mov dword [esi], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov edx, 0xa0d
mov word [ecx + eax], dx
mov edx, dword [sym.imp.MSVCR110.dll_realloc]
mov dword [esi + 4], edi
mov ecx, dword [esi]
test ecx, ecx
jne 0x4039de
mov dword [esi + 4], ecx
lea edi, [ecx + 0x13]
mov dword [esi + 8], 0x4e
test ebx, ebx
je 0x4039d6
push 0x4f
push ecx
call edx
add esp, 8
test eax, eax
jne 0x403a10
jmp 0x40378c
push 0
push 0x4f
push 0
jmp 0x403a0b
mov edi, dword [esi + 4]
add edi, 0x13
cmp edi, dword [esi + 8]
jb 0x403a12
lea eax, [edi + 0x80]
mov dword [esi + 8], eax
inc eax
test ebx, ebx
je 0x403a07
push eax
push ecx
call edx
add esp, 8
test eax, eax
jne 0x403a10
jmp 0x40378c
push 0
push eax
push ecx
call ebp
add esp, 0xc
mov dword [esi], eax
mov ecx, dword [esi]
add ecx, dword [esi + 4]
movq xmm0, qword [str.Connection:_close_r_n]
movq qword [ecx], xmm0
movq xmm0, qword [0x40d4ec]
movq qword [ecx + 8], xmm0
mov ax, word [0x40d4f4]
mov word [ecx + 0x10], ax
mov al, byte [0x40d4f6]
mov byte [ecx + 0x12], al
mov dword [esi + 4], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret