Function at 0x404494
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x90
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebp
xor ebp, ebp
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x8c], eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov ecx, dword fs:[0x2c]
mov edx, dword [ecx]
mov ebx, dword [edx + 0x34]
mov edx, dword [ebx + 0x14]
mov ebx, dword [ebx + 0x10]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], edx
cmp dword [esp + 0x2c], 0
je 0x40460c
mov ecx, dword [esp + 0x30]
mov ebx, dword [ecx + ebp*4]
mov edx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
push dword [ebx + 0x24]
push dword [ebx + 0x20]
call fcn.004472e0
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], 0x4c0800
call fcn.0044a230
xor edi, edi
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], edx
cmp dword [esp + 0x54], edi
je 0x404601
mov ecx, dword [esp + 0x58]
mov esi, dword [ecx + edi*4]
cmp dword [esi + 8], 0
je 0x4045f6
mov edx, dword [esi + 0xc]
movzx eax, byte [edx]
call fcn.00451d3c
xor al, 1
je 0x4045f6
mov dword [esp + 4], 0x4c1720
lea ecx, [esi + 8]
mov edx, dword [esp + 0x5c]
mov dword [esp + 8], ecx
mov dword [esp], edx
call fcn.0044fb58
test eax, eax
jne 0x4045f6
mov dword [esp + 4], 0x4bc740
lea ecx, [esi + 8]
mov edx, 1
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0x5c]
mov dword [esp + 8], edx
mov dword [esp], ecx
call fcn.0044fb10
lea ecx, [esp + 0x24]
mov byte [eax], 1
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
mov dword [esp + 8], 1
mov dword [esp + 4], ecx
mov dword [esp], 0x4bd460
call fcn.0044d73c
mov dword [esp + 0x50], edx
mov ebx, dword [esp + 0x50]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x4c]
lea ecx, [ebx + ecx*8]
mov dword [ecx - 4], edx
mov eax, dword [esp + 0x3c]
mov dword [ecx - 8], eax
inc edi
cmp edi, dword [esp + 0x54]
jb 0x40453b
inc ebp
cmp ebp, dword [esp + 0x2c]
jb 0x4044f3
xor edi, edi
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x34], edx
mov ebx, dword [esp + 0x28]
mov esi, edi
mov dword [esp + 0x64], 4
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], eax
mov dword [esp + 0x38], ebx
cmp dword [esp + 0x34], edi
je 0x40473a
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx + esi*8]
mov edx, dword [ecx + esi*8 + 4]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x44]
xor ebx, ebx
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x84], esi
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
push dword [esp + 0x44]
lea eax, [esp + 0x94]
call fcn.00404754
lea ecx, [esp + 0x7c]
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x7c], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x4c1720
mov dword [esp], edx
call fcn.0044fb58
test eax, eax
je 0x4046ef
inc ebx
lea ecx, [ebx - 1]
cmp ecx, 0xa
jl 0x4046ab
mov dword [esp + 8], 1
lea ebx, [esp + 0x7c]
lea eax, [esp + 0x5c]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], 0x4bc740
mov dword [esp], eax
call fcn.0044fb10
lea edi, [esp + 0x88]
mov byte [eax], 1
mov ecx, 0xa
push dword [edi]
sub edi, 4
dec ecx
jne 0x404722
call fcn.00404f70
inc esi
cmp esi, dword [esp + 0x34]
jb 0x40467f
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
add esp, 0x90
ret