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

Disassembly:
sub esp, 0x60
push ebx
push ebp
push esi
mov esi, dword [esp + 0x70]
mov eax, dword [esi + 0xc4]
and eax, 4
push edi
mov dword [esp + 0x6c], eax
xor eax, eax
push 0x178
push esi
mov dword [esp + 0x50], eax
mov dword [esp + 0x7c], eax
call fcn.0046cb90
mov ebp, eax
push 0x28
push esi
mov dword [esp + 0x24], ebp
call fcn.0046cb90
mov ebx, eax
push 0x50
push esi
mov dword [esp + 0x64], ebx
call fcn.0046cb90
mov edi, eax
push 0x50
push esi
mov dword [esp + 0x44], edi
call fcn.0046cb90
push 0x50
push esi
mov dword [esp + 0x60], eax
call fcn.0046cb90
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0x2a0]
add esp, 0x28
test eax, eax
mov dword [esp + 0x28], 0
je 0x404304
mov ecx, dword [esp + 0x88]
test ecx, ecx
je 0x4042fd
mov dword [esp + 0x28], ecx
jmp 0x404304
add eax, 4
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x7c]
test eax, eax
jge 0x404322
mov edi, dword [esp + 0x78]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x24]
not ecx
dec ecx
mov dword [esp + 0x7c], ecx
push esi
call fcn.0040c4a0
mov eax, dword [esi + 0x64]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x84]
add esp, 4
test eax, 0x20000
je 0x404346
mov ecx, dword [esi + 0x70]
mov dword [esi + 0x64], ecx
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xc4]
test al, 8
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x88], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x44], ecx
mov dword [esp + 0x58], edx
je 0x404394
mov dword [ebx], 4
mov eax, dword [esi + 0x288]
mov eax, dword [eax + 0x18]
mov dword [ebx + 0x18], eax
inc dword [eax]
jmp 0x4043fe
test al, 2
je 0x4043f1
mov dword [ebx], 4
mov eax, dword [esi + 0xfc]
test eax, eax
je 0x4043c7
push eax
push esi
call fcn.00484320
add esp, 8
test eax, eax
jne 0x4043c0
mov edi, 1
jmp 0x404a13
mov dword [ebx + 0x18], eax
inc dword [eax]
jmp 0x4043fe
call fcn.00477380
mov dword [ebx + 0x18], eax
xor ecx, ecx
mov dword [eax], ecx
mov edx, dword [ebx + 0x18]
mov eax, dword [0x5b0f40]
mov dword [edx + 4], eax
mov edx, dword [ebx + 0x18]
mov dword [edx + 8], ecx
mov eax, dword [ebx + 0x18]
mov dword [eax + 0xc], ecx
mov eax, dword [ebx + 0x18]
inc dword [eax]
jmp 0x4043fe
mov dword [ebx], 0
mov dword [ebx + 0x18], 0
mov eax, dword [esi + 0x284]
xor ecx, ecx
cmp eax, ecx
je 0x404410
mov eax, dword [eax + 4]
inc eax
jmp 0x404415
mov eax, 1
mov dword [ebx + 4], eax
mov edx, dword [esi + 0x60]
mov dword [ebx + 0x10], edx
mov eax, dword [esi + 0x284]
mov edx, dword [esp + 0x78]
push ebp
push ecx
mov dword [ebx + 0xc], ecx
mov dword [ebx + 8], ecx
mov dword [ebx + 0x14], eax
mov dword [esi + 0xc4], ecx
mov ecx, dword [esp + 0x84]
push ecx
push edx
push esi
call fcn.0047c6b0
add esp, 0x14
test eax, eax
jne 0x4049d3
jmp 0x404459
mov ebp, dword [esp + 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x44]
push eax
push ecx
lea edx, [esp + 0x8c]
push edx
call fcn.00404b80
mov eax, dword [ebp + 8]
sub eax, dword [esp + 0x98]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x98]
push edx
call fcn.00404ba0
mov ebp, dword [ebp + 0x10]
add esp, 0x18
test ebp, ebp
mov dword [esp + 0x48], 1
mov dword [esp + 0x20], ebp
jle 0x404975
mov eax, dword [esp + 0x84]
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
xor eax, eax
cmp ebx, 0x14
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x1c], eax
jbe 0x404503
lea edi, [ebx*4]
push edi
call fcn.004783d0
push edi
mov dword [esp + 0x20], eax
call fcn.004783d0
push edi
mov dword [esp + 0x94], eax
call fcn.004783d0
add esp, 0xc
mov dword [esp + 0x80], eax
xor eax, eax
test ebx, ebx
mov ecx, dword [esp + 0x88]
mov ebp, dword [ebp + 0x14]
mov dword [esp + 0x54], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x74], eax
jbe 0x40485d
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x80]
sub edx, eax
sub eax, ecx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x60], eax
mov edx, dword [ebp + 4]
mov eax, dword [esp + 0x40]
push edx
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.00404b80
mov edx, dword [ebp + 4]
sub edx, dword [esp + 0x98]
push edx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.00404ba0
mov edx, dword [ebp + 4]
push 0
push ebp
mov dword [esp + 0x60], edx
call fcn.0047f150
add esp, 0x20
test eax, eax
je 0x404585
mov eax, dword [esp + 0x2c]
jmp 0x404588
or eax, 0xffffffff
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x7c]
lea ebx, [ecx + edx]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x4c]
mov dword [ebx + ecx], eax
cmp dword [edx], 4
jne 0x4045aa
or dword [esi + 0xc4], 2
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [ebp + 0xc]
push ecx
push edx
push 0
push eax
lea ecx, [ebp + 0x10]
push ecx
push esi
call fcn.0047e520
mov edi, eax
add esp, 0x1c
test edi, edi
mov dword [esi + 0xc4], 0
jne 0x404a13
push esi
call fcn.0040c190
mov ecx, dword [esp + 0x80]
mov dword [ecx], eax
mov edx, dword [eax]
add esp, 4
inc edx
mov dword [eax], edx
cmp dword [ebp], 0x100
jne 0x404655
mov eax, dword [ecx]
cmp dword [eax + 0xc], 0x5b3ee0
jne 0x40461a
mov edx, dword [eax + 0x10]
mov eax, dword [edx + 8]
mov dword [esp + 0x50], eax
jmp 0x404638
lea ecx, [esp + 0x50]
push ecx
push eax
push esi
call fcn.0047b6d0
mov edi, eax
add esp, 0xc
cmp edi, 1
je 0x4049da
mov eax, dword [esp + 0x50]
test eax, eax
mov dword [esp + 0x54], 1
mov dword [ebx], 1
jne 0x40464f
mov eax, 1
add dword [esp + 0x1c], eax
jmp 0x404664
mov eax, dword [esp + 0x1c]
inc eax
mov dword [ebx], 0
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x40468d
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x8c]
push eax
mov eax, dword [esp + 0x80]
mov ecx, dword [eax]
sub edx, ebx
push edx
push ecx
call fcn.004609f0
add esp, 0xc
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x20]
add edx, 4
mov dword [esp + 0x7c], edx
mov edx, dword [ebp + 0xc]
inc eax
inc edx
shl edx, 4
add ebp, edx
cmp eax, ecx
mov dword [esp + 0x74], eax
jb 0x40453c
mov eax, dword [esp + 0x54]
test eax, eax
je 0x40485d
cmp ecx, 0x14
mov eax, dword [esp + 0x80]
mov ebx, dword [esp + 0x88]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], ebx
lea edi, [eax - 1]
ja 0x4046e9
cmp eax, 0x14
jbe 0x40470d
lea ebp, [eax*4]
push ebp
call fcn.004783d0
push ebp
mov dword [esp + 0x90], eax
call fcn.004783d0
add esp, 8
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x20]
test eax, eax
mov dword [esp + 0x74], 0
je 0x40482c
mov ecx, dword [esp + 0x18]
mov edx, eax
mov eax, dword [esp + 0x40]
sub ecx, eax
lea ebp, [ebx + edx*4 - 4]
sub eax, ebx
mov dword [esp + 0x54], ebp
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x7c], edx
jmp 0x40474d
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
add eax, ebp
cmp dword [eax + ecx], 0
je 0x4047ed
mov ebx, dword [ebp]
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x34]
push edx
push ebx
push 0
mov dword [esp + 0x30], ebx
call fcn.0047b3d0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x84]
add ecx, eax
add esp, 0x10
mov dword [esp + 0x74], ecx
mov ecx, eax
dec eax
test ecx, ecx
mov dword [esp + 0x30], eax
je 0x4047d7
mov edx, dword [esp + 0x88]
mov ebp, dword [esp + 0x80]
lea ecx, [edx + edi*4]
sub ebp, edx
mov edx, dword [esp + 0x68]
mov dword [ecx + ebp], 0xffffffff
mov ebx, dword [edx + eax*4]
mov dword [ecx], ebx
mov eax, dword [edx + eax*4]
mov edx, dword [eax]
dec edi
sub ecx, 4
inc edx
mov dword [eax], edx
mov eax, dword [esp + 0x30]
mov edx, eax
dec eax
test edx, edx
mov dword [esp + 0x30], eax
jne 0x4047a4
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x54]
mov ecx, dword [ebx]
dec ecx
mov eax, ecx
test eax, eax
mov dword [ebx], ecx
jg 0x404810
push ebx
call fcn.00460cf0
add esp, 4
jmp 0x404810
mov eax, dword [eax]
mov ecx, dword [esp + 0x80]
mov dword [ecx + edi*4], eax
mov eax, dword [esp + 0x88]
mov edx, dword [ebp]
mov dword [eax + edi*4], edx
mov eax, dword [esp + 0x74]
dec edi
inc eax
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x7c]
dec eax
sub ebp, 4
test eax, eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x54], ebp
ja 0x404745
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x88]
cmp ebx, dword [esp + 0x24]
lea edx, [ecx + edi*4 + 4]
mov dword [esp + 0x10], edx
je 0x40484a
push ebx
call fcn.00478500
add esp, 4
mov eax, dword [esp + 0x40]
cmp eax, dword [esp + 0x34]
je 0x40485d
push eax
call fcn.00478500
add esp, 4
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 8]
mov ebx, dword [esp + 0x4c]
mov dword [ebx + 0x20], eax
mov ecx, dword [edi + 0xc]
mov dword [ebx + 0x24], ecx
mov eax, dword [edi + 8]
mov edx, dword [edi + 0xc]
lea ecx, [edx + eax - 1]
cmp dword [edi + 0x30], ecx
jne 0x404883
dec dword [ebx + 0x24]
mov ebp, dword [esp + 0x74]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x80]
push ebx
push ebp
push eax
push esi
mov dword [ebx + 0xc], ebp
mov dword [ebx + 8], edx
call fcn.00404bd0
mov edx, dword [esi + 0x58]
mov eax, dword [esp + 0x20]
inc edx
push 0
mov dword [esi + 0x284], ebx
mov dword [esi + 0x58], edx
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 8]
push ecx
push edx
push eax
push ebp
push esi
call fcn.00403b40
mov ecx, dword [esi + 0x284]
mov edi, eax
dec dword [esi + 0x58]
mov eax, dword [esp + 0x38]
mov edx, dword [ecx + 0x14]
push ebp
push eax
push esi
mov dword [esi + 0x284], edx
call fcn.00404c50
xor eax, eax
add esp, 0x34
cmp edi, eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
jne 0x404a13
mov eax, ebp
test eax, eax
jbe 0x40491d
mov edi, dword [esp + 0x10]
mov ebx, eax
mov eax, dword [edi]
dec dword [eax]
mov eax, dword [edi]
cmp dword [eax], 0
jg 0x404917
push eax
call fcn.00460cf0
add esp, 4
add edi, 4
dec ebx
jne 0x404903
mov eax, dword [esp + 0x88]
mov edi, dword [esp + 0x24]
cmp eax, edi
mov dword [esp + 0x74], 0
je 0x40495c
push eax
call fcn.00478500
mov ecx, dword [esp + 0x84]
push ecx
mov dword [esp + 0x90], edi
call fcn.00478500
mov edx, dword [esp + 0x3c]
add esp, 8
mov dword [esp + 0x80], edx
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x38]
cmp eax, edi
je 0x404975
push eax
call fcn.00478500
add esp, 4
mov dword [esp + 0x18], edi
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx + 8]
mov edi, dword [ebx + 0xc]
mov ecx, dword [esp + 0x44]
mov ebp, dword [esp + 0x58]
add edi, eax
push edi
sub ecx, edi
push eax
lea edx, [esp + 0x8c]
add ebp, ecx
push edx
mov dword [esp + 0x64], ebp
mov dword [esp + 0x50], edi
call fcn.00404b80
push ebx
call fcn.0047d7d0
add esp, 0x10
test ebp, ebp
mov dword [esp + 0x48], 0
jle 0x404b0b
push ebx
push 0
push ebp
push edi
push esi
call fcn.0047c6b0
add esp, 0x14
test eax, eax
je 0x404455
mov edi, 1
jmp 0x404a13
mov ebx, dword [esp + 0x74]
push ebx
push str._n_____expanding_word__d_
call fcn.0047ad70
push eax
push esi
call fcn.004058e0
mov ecx, dword [esp + 0x98]
mov eax, dword [ecx + ebx*4]
mov edx, dword [eax]
add esp, 0x10
dec edx
mov dword [eax], edx
mov ebx, dword [ecx + ebx*4]
cmp dword [ebx], 0
jg 0x404a13
push ebx
call fcn.00460cf0
add esp, 4
mov eax, dword [esi + 0x58]
test eax, eax
jne 0x404a4c
cmp edi, 2
jne 0x404a2a
push esi
call fcn.0044dd20
add esp, 4
mov edi, eax
test edi, edi
je 0x404a4c
cmp edi, 1
je 0x404a51
mov eax, dword [esp + 0x6c]
test eax, eax
jne 0x404a4c
push edi
push esi
call fcn.004052b0
add esp, 8
mov edi, 1
jmp 0x404a51
cmp edi, 1
jne 0x404a80
test byte [esi + 0x100], 4
jne 0x404a80
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0xc]
mov ecx, dword [edx + 8]
mov ebp, dword [edx + 0x30]
lea ebx, [ecx + eax - 1]
cmp ebp, ebx
jne 0x404a70
dec eax
push eax
mov eax, dword [esp + 0x7c]
push ecx
push eax
push esi
call fcn.00459d30
add esp, 0x10
mov edx, dword [esi + 0x100]
mov eax, dword [esp + 0x74]
and edx, 0xfffffffb
test eax, eax
mov dword [esi + 0x100], edx
jbe 0x404ab7
mov ebx, dword [esp + 0x10]
mov ebp, eax
mov eax, dword [ebx]
dec dword [eax]
mov eax, dword [ebx]
cmp dword [eax], 0
jg 0x404ab1
push eax
call fcn.00460cf0
add esp, 4
add ebx, 4
dec ebp
jne 0x404a9d
mov eax, dword [esp + 0x48]
test eax, eax
je 0x404acc
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0047d7d0
add esp, 4
mov eax, dword [esp + 0x88]
cmp eax, dword [esp + 0x24]
je 0x404aef
push eax
call fcn.00478500
mov edx, dword [esp + 0x84]
push edx
call fcn.00478500
add esp, 8
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x38]
je 0x404b02
push eax
call fcn.00478500
add esp, 4
mov eax, dword [esp + 0x5c]
mov dword [esi + 0x64], eax
jmp 0x404b14
mov ecx, dword [esp + 0x5c]
mov dword [esi + 0x64], ecx
xor edi, edi
mov ebx, dword [esp + 0x4c]
cmp dword [ebx], 4
jne 0x404b33
mov eax, dword [ebx + 0x18]
dec dword [eax]
mov eax, dword [ebx + 0x18]
cmp dword [eax], 0
jg 0x404b33
push eax
call fcn.00460cf0
add esp, 4
mov edx, dword [esp + 0x34]
push edx
push esi
call fcn.0046cb00
mov eax, dword [esp + 0x40]
push eax
push esi
call fcn.0046cb00
mov ecx, dword [esp + 0x34]
push ecx
push esi
call fcn.0046cb00
push ebx
push esi
call fcn.0046cb00
mov edx, dword [esp + 0x34]
push edx
push esi
call fcn.0046cb00
add esp, 0x28
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret