Function at 0x40aa20
Capabilities:
Get hostname
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x46899c
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x48b270]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48b270]
xor eax, esp
push eax
lea eax, [esp + 0x268]
mov dword fs:[0], eax
mov edi, dword [esp + 0x27c]
mov esi, dword [esp + 0x278]
xor ebp, ebp
mov dword [esp + 0x48], ebp
mov eax, dword [edi + 0x34]
mov ebx, dword [eax + 0x44]
mov dword [esp + 0x270], ebp
mov dword [esp + 0x58], esi
mov dword [esp + 0x1c], ebx
call fcn.00432e51
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x40aa9e
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x270], ebp
mov dword [esp + 0x48], 1
call fcn.00432e51
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x40aad5
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ebp, dword [0x48ef60]
mov eax, dword [ebp]
mov dword [esp + 0x270], 1
test eax, eax
je 0x40ab30
mov ecx, eax
lea ebx, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40ab02
sub ecx, ebx
mov ebx, dword [esp + 0x1c]
push ecx
push eax
mov ecx, esi
call fcn.00401e60
push 1
push 0x46f89c
mov ecx, esi
call fcn.00401e60
mov eax, dword [ebp + 4]
add ebp, 4
test eax, eax
jne 0x40aafd
mov eax, dword [edi + 0xa4]
cmp eax, 1
jne 0x40ac01
push 0x10
push str.AUTH_TYPEBasic_n
mov ecx, esi
call fcn.00401e60
mov eax, dword [edi + 0x78]
push eax
lea ecx, [esp + 0x18]
push str.AUTH_REALM_s_n
push ecx
call fcn.00401f50
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
mov ecx, esi
call fcn.00401e60
mov eax, dword [edi + 0xa8]
push eax
lea edx, [esp + 0x18]
push str.REMOTE_USER_s_n
push edx
call fcn.00401f50
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
mov ecx, esi
call fcn.00401e60
mov eax, dword [edi + 0xa8]
push eax
lea eax, [esp + 0x18]
push str.AUTH_USER_s_n
push eax
call fcn.00401f50
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
mov ecx, esi
call fcn.00401e60
mov eax, dword [edi + 0xac]
push eax
lea ecx, [esp + 0x18]
push str.REMOTE_PASSWORD_s_n
push ecx
call fcn.00401f50
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
mov ecx, esi
call fcn.00401e60
mov eax, dword [edi + 0xac]
push eax
push str.AUTH_PASSWORD_s_n
lea edx, [esp + 0x1c]
push edx
jmp 0x40ac4e
cmp eax, 2
jne 0x40ac66
push 0xf
push str.AUTH_TYPENTLM_n
mov ecx, esi
call fcn.00401e60
mov eax, dword [edi + 0xa8]
push eax
lea eax, [esp + 0x18]
push str.REMOTE_USER_s_n
push eax
call fcn.00401f50
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
mov ecx, esi
call fcn.00401e60
mov eax, dword [edi + 0xa8]
push eax
push str.AUTH_USER_s_n
lea ecx, [esp + 0x1c]
push ecx
call fcn.00401f50
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
mov ecx, esi
call fcn.00401e60
push 0x1a
push str.GATEWAY_INTERFACECGI_1.1_n
mov ecx, esi
call fcn.00401e60
mov eax, dword [ebx + 0x24]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x40ac93
push eax
lea edx, [esp + 0x18]
push str.SERVER_NAME_s_n
push edx
call fcn.00401f50
add esp, 0xc
jmp 0x40ad0e
push pe_nt_image_headers32
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x40acfe
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402600
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push str.SERVER_NAME_s_n
push eax
mov byte [esp + 0x27c], 2
call fcn.00401f50
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x270], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ad0e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40ad0e
push 0xd
push str.SERVER_NAME_n
lea ecx, [esp + 0x1c]
call fcn.00401b90
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
call fcn.00401e60
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x40ad48
push eax
lea ecx, [esp + 0x18]
push str.CONTENT_LENGTH_d_n
push ecx
call fcn.00401f50
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
mov ecx, esi
call fcn.00401e60
mov eax, dword [edi + 0xb4]
cmp dword [eax - 0xc], 0
je 0x40ad77
push eax
lea edx, [esp + 0x18]
push str.CONTENT_TYPE_s_n
push edx
call fcn.00401f50
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
mov ecx, esi
call fcn.00401e60
movzx eax, word [ebx + 4]
push eax
lea ecx, [esp + 0x18]
push str.SERVER_PORT_d_n
push ecx
call fcn.00401f50
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
mov ecx, esi
call fcn.00401e60
push 0x19
push str.SERVER_PROTOCOLHTTP_1.0_n
mov ecx, esi
call fcn.00401e60
mov eax, dword [ebx + 0x2c]
push eax
lea edx, [esp + 0x18]
push str.SERVER_SOFTWARE_s_n
push edx
call fcn.00401f50
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
mov ecx, esi
call fcn.00401e60
mov ebp, dword [edi + 0xd0]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
sub ebp, 0x10
call edx
cmp dword [ebp + 0xc], 0
lea edx, [ebp + 0xc]
jl 0x40ae00
cmp eax, dword [ebp]
jne 0x40ae00
mov ebx, ebp
mov eax, 1
lock xadd dword [edx], eax
jmp 0x40ae35
mov ecx, dword [ebp + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
jne 0x40ae19
call fcn.00401280
mov eax, dword [ebp + 4]
mov dword [ebx + 4], eax
mov eax, dword [ebp + 4]
inc eax
push eax
add ebp, 0x10
push ebp
push eax
lea ecx, [ebx + 0x10]
push ecx
call fcn.00450dc2
add esp, 0x10
add ebx, 0x10
mov dword [esp + 0x20], ebx
push 0x2f
push 0x5c
lea ecx, [esp + 0x28]
mov byte [esp + 0x278], 3
call fcn.004092d0
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 0xc]
xor ebx, ebx
cmp eax, ebx
je 0x40aec0
jge 0x40ae6a
push 0x80070057
call fcn.00401090
cmp byte [ecx], 0x2f
je 0x40aec0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push 0x46f790
push eax
call fcn.004095f0
add esp, 0xc
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x274], 4
call fcn.004042c0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x270], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aec0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x18]
push str.SCRIPT_NAME_s_n
push edx
call fcn.00401f50
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
mov ecx, esi
call fcn.00401e60
mov eax, dword [edi + 0xd0]
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x164]
push edx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [esp + 0x160]
push eax
lea ecx, [esp + 0x18]
push str.PATH_TRANSLATED_s_n
push ecx
call fcn.00401f50
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
mov ecx, esi
call fcn.00401e60
mov eax, dword [edi + 0x50]
push eax
lea edx, [esp + 0x18]
push str.REQUEST_LINE_s_n
push edx
call fcn.00401f50
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
mov ecx, esi
call fcn.00401e60
mov eax, dword [edi + 0x88]
push eax
lea eax, [esp + 0x18]
push str.QUERY_STRING_s_n
push eax
call fcn.00401f50
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
mov ecx, esi
call fcn.00401e60
mov eax, dword [edi + 0xb0]
cmp dword [eax - 0xc], ebx
je 0x40af9f
push eax
lea ecx, [esp + 0x18]
push str.REMOTE_HOST_s_n
push ecx
call fcn.00401f50
add esp, 0xc
jmp 0x40aff2
lea edx, [edi + 0x54]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00406770
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x20]
push str.REMOTE_HOST_s_n
push ecx
mov byte [esp + 0x284], 5
call fcn.00401f50
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x14
mov byte [esp + 0x270], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40aff2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
call fcn.00401e60
lea ecx, [edi + 0x54]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00406770
mov eax, dword [eax]
push eax
lea eax, [esp + 0x20]
push str.REMOTE_ADDR_s_n
push eax
mov byte [esp + 0x284], 6
call fcn.00401f50
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x14
mov byte [esp + 0x270], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b055
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
call fcn.00401e60
mov eax, dword [edi + 0x80]
push eax
lea ecx, [esp + 0x18]
push str.PATH_INFO_s_n
push ecx
call fcn.00401f50
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
mov ecx, esi
call fcn.00401e60
mov eax, dword [edi + 0x74]
push eax
lea edx, [esp + 0x18]
push str.REQUEST_METHOD_s_n
push edx
call fcn.00401f50
mov ebp, dword [esp + 0x20]
mov eax, dword [ebp - 0xc]
add esp, 0xc
push eax
push ebp
mov ecx, esi
call fcn.00401e60
push 0x46f790
lea ecx, [esp + 0x44]
call fcn.00402600
mov byte [esp + 0x270], 7
call fcn.00432e51
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40b0e4
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov byte [esp + 0x270], 8
call fcn.00432e51
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40b116
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
mov edx, dword [edi]
mov edx, dword [edx + 0x60]
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x54]
push ecx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x60]
push ecx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea eax, [esp + 0x58]
push eax
mov ecx, edi
mov byte [esp + 0x28c], 9
call edx
test eax, eax
je 0x40b1c1
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x18]
push eax
call fcn.004092a0
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x18]
push str.DOCUMENT_ROOT_s_n
push ecx
mov byte [esp + 0x27c], 0xa
call fcn.00401f50
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x270], 9
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b1b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x14]
mov eax, dword [ebp - 0xc]
push eax
push ebp
mov ecx, esi
call fcn.00401e60
mov edx, dword [edi]
mov edx, dword [edx + 0x38]
lea eax, [esp + 0x24]
push eax
mov ecx, edi
mov dword [esp + 0x28], ebx
call edx
test eax, eax
je 0x40b1ff
mov eax, dword [esp + 0x24]
push eax
push eax
lea eax, [esp + 0x1c]
push str.HTTPS_KEYSIZE_d_nCERT_KEYSIZE_d_n
push eax
call fcn.00401f50
mov ebp, dword [esp + 0x24]
mov eax, dword [ebp - 0xc]
add esp, 0x10
push eax
push ebp
mov ecx, esi
call fcn.00401e60
mov edx, dword [edi]
mov edx, dword [edx + 0x3c]
lea eax, [esp + 0x24]
push eax
mov ecx, edi
call edx
test eax, eax
je 0x40b239
mov eax, dword [esp + 0x24]
push eax
push eax
lea eax, [esp + 0x1c]
push str.HTTPS_SECRETKEYSIZE_d_nCERT_SECRETKEYSIZE_d_n
push eax
call fcn.00401f50
mov ebp, dword [esp + 0x24]
mov eax, dword [ebp - 0xc]
add esp, 0x10
push eax
push ebp
mov ecx, esi
call fcn.00401e60
mov eax, dword [ebp - 0xc]
push eax
push ebp
mov ecx, esi
call fcn.00401e60
push 0xa
push str.HTTPSoff_n
lea ecx, [esp + 0x1c]
call fcn.00401b90
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
call fcn.00401e60
mov edx, dword [edi]
mov edx, dword [edx + 0x40]
lea eax, [esp + 0x38]
push eax
mov ecx, edi
mov dword [esp + 0x3c], ebx
call edx
test eax, eax
je 0x40b2a2
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x18]
push str.CERT_SERIALNUMBER_d_n
push ecx
call fcn.00401f50
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
mov ecx, esi
call fcn.00401e60
mov eax, dword [edi + 0x78]
push eax
lea edx, [esp + 0x18]
push str.REQUEST_URI_s_n
push edx
call fcn.00401f50
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
mov ecx, esi
call fcn.00401e60
mov eax, dword [edi + 0x78]
push eax
lea eax, [esp + 0x18]
push str.URL_s_n
push eax
call fcn.00401f50
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
mov ecx, esi
call fcn.00401e60
cmp dword [edi + 0xc4], ebx
je 0x40b309
mov eax, dword [edi + 0xa8]
push eax
push str.LOGON_USER_s_n
lea ecx, [esp + 0x1c]
push ecx
jmp 0x40b320
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x34]
cmp dword [eax - 0xc], ebx
je 0x40b338
push eax
push str.LOGON_USER_s_n
lea eax, [esp + 0x1c]
push eax
call fcn.00401f50
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
mov ecx, esi
call fcn.00401e60
mov edx, dword [edi]
mov edx, dword [edx + 0x44]
lea eax, [esp + 0x3c]
push eax
mov ecx, edi
mov dword [esp + 0x40], ebx
call edx
test eax, eax
je 0x40b3b4
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402600
mov eax, dword [esp + 0x18]
push eax
push eax
lea ecx, [esp + 0x1c]
push str.CERT_SERVER_ISSUER_s_nHTTPS_SERVER_ISSUER_s_n
push ecx
mov byte [esp + 0x280], 0xb
call fcn.00401f50
mov eax, dword [esp + 0x24]
mov ecx, dword [eax - 0xc]
add esp, 0x10
push ecx
push eax
mov ecx, esi
call fcn.00401e60
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x270], 9
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b3b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi]
mov edx, dword [edx + 0x48]
lea eax, [esp + 0x34]
push eax
mov ecx, edi
mov dword [esp + 0x38], ebx
call edx
test eax, eax
je 0x40b430
mov eax, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402600
mov eax, dword [esp + 0x18]
push eax
push eax
lea ecx, [esp + 0x1c]
push str.CERT_SERVER_SUBJECT_s_nHTTPS_SERVER_SUBJECT_s_n
push ecx
mov byte [esp + 0x280], 0xc
call fcn.00401f50
mov eax, dword [esp + 0x24]
mov ecx, dword [eax - 0xc]
add esp, 0x10
push ecx
push eax
mov ecx, esi
call fcn.00401e60
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x270], 9
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b430
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
movzx ecx, word [edi + 0x8c]
movzx edx, word [edi + 0x8e]
push ecx
push edx
lea eax, [esp + 0x1c]
push str.HTTP_VERSION_d._d_n
push eax
call fcn.00401f50
mov ebp, dword [esp + 0x24]
mov eax, dword [ebp - 0xc]
add esp, 0x10
push eax
push ebp
mov ecx, esi
call fcn.00401e60
mov eax, dword [edi + 0xe0]
neg eax
sbb eax, eax
mov dword [esp + 0x2c], eax
cmp eax, ebx
je 0x40b58b
mov bl, 0xe
lea ebx, [ebx]
call fcn.00432e51
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40aa94
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x270], 0xd
call fcn.00432e51
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40aa94
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [edi + 0xd4]
mov byte [esp + 0x27c], bl
call fcn.00438129
push 0x46fba0
push 0x46ef18
lea ecx, [esp + 0x24]
call fcn.00409390
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push ecx
push edx
lea eax, [esp + 0x1c]
push str.HTTP__s_s_n
push eax
call fcn.00401f50
mov ebp, dword [esp + 0x24]
mov eax, dword [ebp - 0xc]
add esp, 0x10
push eax
push ebp
mov ecx, esi
call fcn.00401e60
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x270], 0xd
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b558
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x270], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b580
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x2c], 0
jne 0x40b480
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x270], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b5b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x270], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b5db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0x270], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b603
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x270], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b62b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 0xfffffff0
mov byte [esp + 0x270], 0
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b650
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov eax, esi
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.004517f0
add esp, 0x260
ret 8