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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xfc
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [eax + 0xc]
mov dword [esp + 0x20], eax
push edi
mov edi, dword [eax + 0x10]
mov dword [esp + 0x20], ecx
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x40], 0
mov dword [esp + 0x4c], eax
mov dword [esp + 0x10], 0
cmp dword [edx + 0xc], esi
ja 0x404486
cmp esi, edi
jbe 0x40448b
call fcn.00457319
mov eax, dword [esp + 0x24]
mov edi, dword [eax]
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x44], ecx
cmp dword [eax + 0xc], ecx
jbe 0x4044a2
call fcn.00457319
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
test edi, edi
je 0x4044b0
cmp edi, eax
je 0x4044b5
call fcn.00457319
cmp esi, dword [esp + 0x44]
je 0x4044fd
test edi, edi
jne 0x4044f5
call fcn.00457319
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x4044d0
call fcn.00457319
mov ecx, dword [esi + 0x14]
add dword [esp + 0x10], ecx
test edi, edi
jne 0x4044f9
call fcn.00457319
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x4044ec
call fcn.00457319
mov eax, dword [esp + 0x24]
add esi, 0x1c
jmp 0x404491
mov eax, dword [edi]
jmp 0x4044c6
mov eax, dword [edi]
jmp 0x4044e2
mov ecx, dword [esp + 0x14]
xor edx, edx
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 7
lea edi, [ecx + 4]
mov word [edi], dx
mov eax, dword [ebx + 0x14]
mov edx, dword [esp + 0x10]
mov esi, dword [ecx + 0x14]
add eax, edx
cmp esi, eax
ja 0x40454d
cmp dword [ecx + 0x18], eax
je 0x40454d
push 1
push eax
call fcn.004035b0
test al, al
je 0x40454d
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x18], 8
mov dword [eax + 0x14], esi
jb 0x404547
mov edi, dword [edi]
xor edx, edx
mov word [edi + esi*2], dx
push 4
call fcn.00457344
xor edx, edx
add esp, 4
cmp eax, edx
je 0x404569
lea ecx, [esp + 0x28]
mov dword [eax], ecx
mov dword [esp + 0x28], eax
jmp 0x40456d
mov dword [esp + 0x28], edx
mov ecx, dword [ebx + 0x18]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
lea eax, [ebx + 4]
cmp ecx, 8
jb 0x404588
mov esi, dword [eax]
jmp 0x40458a
mov esi, eax
cmp esi, edx
je 0x4045ae
cmp ecx, 8
jb 0x404597
mov edx, dword [eax]
jmp 0x404599
mov edx, eax
cmp edx, esi
ja 0x4045ae
cmp ecx, 8
jb 0x4045a4
mov eax, dword [eax]
mov edx, dword [ebx + 0x14]
lea eax, [eax + edx*2]
cmp esi, eax
jbe 0x4045b3
call fcn.00457319
mov dword [esp + 0x1c], esi
mov edx, dword [ebx + 0x18]
lea edi, [ebx + 4]
cmp edx, 8
jb 0x4045c6
mov ecx, dword [edi]
jmp 0x4045c8
mov ecx, edi
mov eax, dword [ebx + 0x14]
add eax, eax
lea esi, [eax + ecx]
test esi, esi
je 0x4045f4
cmp edx, 8
jb 0x4045dd
mov ecx, dword [edi]
jmp 0x4045df
mov ecx, edi
cmp ecx, esi
ja 0x4045f4
cmp edx, 8
jb 0x4045ec
mov ecx, dword [edi]
jmp 0x4045ee
mov ecx, edi
add ecx, eax
cmp esi, ecx
jbe 0x4045f9
call fcn.00457319
mov ecx, dword [esp + 0x1c]
cmp ecx, esi
je 0x404b17
cmp ebx, 0xfffffffc
je 0x404629
cmp dword [ebx + 0x18], 8
jb 0x404614
mov eax, dword [edi]
jmp 0x404616
mov eax, edi
mov edx, dword [ebx + 0x14]
lea eax, [eax + edx*2]
cmp ecx, eax
jb 0x404629
call fcn.00457319
mov ecx, dword [esp + 0x1c]
mov edx, 0x24
cmp dx, word [ecx]
jne 0x404a63
mov edx, dword [ebx + 0x18]
cmp edx, 8
jb 0x404643
mov ecx, dword [edi]
jmp 0x404645
mov ecx, edi
mov eax, dword [ebx + 0x14]
add eax, eax
lea esi, [ecx + eax]
mov dword [esp + 0x10], esi
test esi, esi
je 0x404675
cmp edx, 8
jb 0x40465e
mov ecx, dword [edi]
jmp 0x404660
mov ecx, edi
cmp ecx, esi
ja 0x404675
cmp edx, 8
jb 0x40466d
mov ecx, dword [edi]
jmp 0x40466f
mov ecx, edi
add eax, ecx
cmp esi, eax
jbe 0x40467a
call fcn.00457319
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x48], eax
cmp ebx, 0xfffffffc
je 0x4046be
mov edx, dword [ebx + 0x18]
cmp edx, 8
jb 0x404693
mov eax, dword [edi]
jmp 0x404695
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov esi, dword [ebx + 0x14]
add ecx, 2
lea eax, [eax + esi*2]
cmp ecx, eax
ja 0x4046b5
cmp edx, 8
jb 0x4046af
mov eax, dword [edi]
jmp 0x4046b1
mov eax, edi
cmp ecx, eax
jae 0x4046ba
call fcn.00457319
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
add ecx, 2
mov eax, ebx
mov dword [esp + 0x10], ecx
cmp eax, 0xfffffffc
je 0x4046dd
test eax, eax
je 0x4046d8
cmp eax, ebx
je 0x4046dd
call fcn.00457319
cmp dword [esp + 0x10], esi
je 0x404ae9
cmp ebx, 0xfffffffc
je 0x404709
cmp dword [ebx + 0x18], 8
jb 0x4046f6
mov eax, dword [edi]
jmp 0x4046f8
mov eax, edi
mov edx, dword [ebx + 0x14]
lea eax, [eax + edx*2]
cmp dword [esp + 0x1c], eax
jb 0x404709
call fcn.00457319
test byte [esp + 0x40], 1
mov esi, dword [esp + 0x10]
mov dword [esp + 0x1c], esi
je 0x404726
and dword [esp + 0x40], 0xfffffffe
lea ecx, [esp + 0x74]
call fcn.00410ff0
cmp ebx, 0xfffffffc
je 0x404746
cmp dword [ebx + 0x18], 8
jb 0x404735
mov eax, dword [edi]
jmp 0x404737
mov eax, edi
mov ecx, dword [ebx + 0x14]
lea edx, [eax + ecx*2]
cmp esi, edx
jb 0x404746
call fcn.00457319
mov eax, 0x24
cmp ax, word [esi]
jne 0x404888
mov edx, dword [ebx + 0x18]
lea edi, [ebx + 4]
cmp edx, 8
jb 0x404763
mov ecx, dword [edi]
jmp 0x404765
mov ecx, edi
mov eax, dword [ebx + 0x14]
add eax, eax
lea esi, [eax + ecx]
test esi, esi
je 0x404791
cmp edx, 8
jb 0x40477a
mov ecx, dword [edi]
jmp 0x40477c
mov ecx, edi
cmp ecx, esi
ja 0x404791
cmp edx, 8
jb 0x404789
mov ecx, dword [edi]
jmp 0x40478b
mov ecx, edi
add eax, ecx
cmp esi, eax
jbe 0x404796
call fcn.00457319
mov ecx, dword [esp + 0x1c]
cmp ecx, esi
je 0x40485e
cmp ebx, 0xfffffffc
je 0x4047c6
cmp dword [ebx + 0x18], 8
jb 0x4047b1
mov eax, dword [edi]
jmp 0x4047b3
mov eax, edi
mov edx, dword [ebx + 0x14]
lea eax, [eax + edx*2]
cmp ecx, eax
jb 0x4047c6
call fcn.00457319
mov ecx, dword [esp + 0x1c]
mov edx, 0x24
cmp dx, word [ecx]
jne 0x40485e
mov edx, dword [esp + 0x14]
mov edi, dword [edx + 0x18]
add edx, 4
cmp edi, 8
jb 0x4047e7
mov ecx, dword [edx]
jmp 0x4047e9
mov ecx, edx
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x14]
add eax, eax
lea esi, [eax + ecx]
test esi, esi
je 0x404819
cmp edi, 8
jb 0x404802
mov ecx, dword [edx]
jmp 0x404804
mov ecx, edx
cmp ecx, esi
ja 0x404819
cmp edi, 8
jb 0x404811
mov ecx, dword [edx]
jmp 0x404813
mov ecx, edx
add eax, ecx
cmp esi, eax
jbe 0x40481e
call fcn.00457319
mov ecx, dword [esp + 0x14]
push 0x24
push esi
push ecx
lea edx, [esp + 0x78]
push edx
call fcn.00405e90
cmp ebx, 0xfffffffc
je 0x404854
cmp dword [ebx + 0x18], 8
jb 0x404840
mov eax, dword [ebx + 4]
jmp 0x404843
lea eax, [ebx + 4]
mov ecx, dword [ebx + 0x14]
lea edx, [eax + ecx*2]
cmp dword [esp + 0x1c], edx
jb 0x404854
call fcn.00457319
add dword [esp + 0x1c], 2
jmp 0x404754
cmp ebx, 0xfffffffc
je 0x40487c
cmp dword [ebx + 0x18], 8
jb 0x40486d
mov eax, dword [edi]
jmp 0x40486f
mov eax, edi
cmp ecx, eax
ja 0x40487c
call fcn.00457319
mov ecx, dword [esp + 0x1c]
sub ecx, 2
mov dword [esp + 0x1c], ecx
jmp 0x404ae9
mov dword [esp + 0x10], 0
mov edx, dword [ebx + 0x18]
cmp edx, 8
jb 0x40489c
mov ecx, dword [edi]
jmp 0x40489e
mov ecx, edi
mov eax, dword [ebx + 0x14]
add eax, eax
lea esi, [eax + ecx]
test esi, esi
je 0x4048ca
cmp edx, 8
jb 0x4048b3
mov ecx, dword [edi]
jmp 0x4048b5
mov ecx, edi
cmp ecx, esi
ja 0x4048ca
cmp edx, 8
jb 0x4048c2
mov ecx, dword [edi]
jmp 0x4048c4
mov ecx, edi
add eax, ecx
cmp esi, eax
jbe 0x4048cf
call fcn.00457319
mov ecx, dword [esp + 0x1c]
cmp ecx, esi
je 0x40499f
cmp ebx, 0xfffffffc
je 0x4048ff
cmp dword [ebx + 0x18], 8
jb 0x4048ea
mov eax, dword [edi]
jmp 0x4048ec
mov eax, edi
mov edx, dword [ebx + 0x14]
lea eax, [eax + edx*2]
cmp ecx, eax
jb 0x4048ff
call fcn.00457319
mov ecx, dword [esp + 0x1c]
mov edx, 0x30
cmp dx, word [ecx]
ja 0x40499f
cmp ebx, 0xfffffffc
je 0x404931
cmp dword [ebx + 0x18], 8
jb 0x40491c
mov eax, dword [edi]
jmp 0x40491e
mov eax, edi
mov edx, dword [ebx + 0x14]
lea eax, [eax + edx*2]
cmp ecx, eax
jb 0x404931
call fcn.00457319
mov ecx, dword [esp + 0x1c]
cmp word [ecx], 0x39
ja 0x40499f
mov esi, dword [esp + 0x10]
lea esi, [esi + esi*4]
add esi, esi
cmp ebx, 0xfffffffc
je 0x404964
cmp dword [ebx + 0x18], 8
jb 0x40494f
mov eax, dword [edi]
jmp 0x404951
mov eax, edi
mov edx, dword [ebx + 0x14]
lea eax, [eax + edx*2]
cmp ecx, eax
jb 0x404964
call fcn.00457319
mov ecx, dword [esp + 0x1c]
movzx edx, word [ecx]
lea eax, [esi + edx - 0x30]
mov dword [esp + 0x10], eax
cmp ebx, 0xfffffffc
je 0x404993
cmp dword [ebx + 0x18], 8
jb 0x40497e
mov eax, dword [edi]
jmp 0x404980
mov eax, edi
mov edx, dword [ebx + 0x14]
lea eax, [eax + edx*2]
cmp ecx, eax
jb 0x404993
call fcn.00457319
mov ecx, dword [esp + 0x1c]
add ecx, 2
mov dword [esp + 0x1c], ecx
jmp 0x404890
cmp ebx, 0xfffffffc
je 0x4049bd
cmp dword [ebx + 0x18], 8
jb 0x4049ae
mov eax, dword [edi]
jmp 0x4049b0
mov eax, edi
cmp ecx, eax
ja 0x4049bd
call fcn.00457319
mov ecx, dword [esp + 0x1c]
dec dword [esp + 0x10]
sub ecx, 2
cmp dword [esp + 0x20], 0
mov dword [esp + 0x1c], ecx
je 0x404a36
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x14]
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x50], ecx
mov ebx, eax
cmp esi, eax
jbe 0x404a06
call fcn.00457319
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
cmp esi, eax
jbe 0x404a06
call fcn.00457319
mov edi, dword [esp + 0x28]
push esi
lea eax, [esp + 0x54]
mov ecx, ebx
mov dword [esp + 0x4c], esi
call fcn.00409940
add esp, 4
push eax
push edi
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x38]
call fcn.004057c0
mov ebx, dword [esp + 0x58]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x4c]
jae 0x404ae9
mov ecx, eax
mov eax, dword [esp + 0x24]
push ecx
call fcn.00405580
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push 0
push eax
call fcn.00405cb0
jmp 0x404ae9
cmp ebx, 0xfffffffc
je 0x404a83
cmp dword [ebx + 0x18], 8
jb 0x404a72
mov eax, dword [edi]
jmp 0x404a74
mov eax, edi
mov edx, dword [ebx + 0x14]
lea eax, [eax + edx*2]
cmp ecx, eax
jb 0x404a83
call fcn.00457319
mov ecx, dword [esp + 0x1c]
movzx edx, word [ecx]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x14]
mov edi, dword [edx + 0x18]
add edx, 4
cmp edi, 8
jb 0x404aa1
mov ecx, dword [edx]
jmp 0x404aa3
mov ecx, edx
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x14]
add eax, eax
lea esi, [eax + ecx]
test esi, esi
je 0x404acf
cmp edi, 8
jb 0x404abc
mov ecx, dword [edx]
jmp 0x404abe
mov ecx, edx
cmp ecx, esi
ja 0x404acf
cmp edi, 8
jb 0x404ac9
mov edx, dword [edx]
add eax, edx
cmp esi, eax
jbe 0x404ad4
call fcn.00457319
mov ecx, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x18]
push esi
push ecx
lea edx, [esp + 0x68]
push edx
call fcn.00405e90
cmp ebx, 0xfffffffc
je 0x404b0d
cmp dword [ebx + 0x18], 8
jb 0x404af9
mov eax, dword [ebx + 4]
jmp 0x404afc
lea eax, [ebx + 4]
mov ecx, dword [ebx + 0x14]
lea edx, [eax + ecx*2]
cmp dword [esp + 0x1c], edx
jb 0x404b0d
call fcn.00457319
add dword [esp + 0x1c], 2
jmp 0x4045b7
cmp dword [esp + 0x20], 0
je 0x404bf7
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jbe 0x404b37
call fcn.00457319
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x28]
mov edi, esi
lea ecx, [ecx]
mov esi, eax
cmp dword [esp + 0x34], eax
jbe 0x404b4d
call fcn.00457319
test ebx, ebx
je 0x404b57
cmp ebx, dword [esp + 0x28]
je 0x404b5c
call fcn.00457319
cmp edi, esi
je 0x404bf7
test ebx, ebx
jne 0x404b88
call fcn.00457319
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x404b79
call fcn.00457319
mov edx, dword [esp + 0x20]
mov ecx, dword [edx + 0xc]
test ecx, ecx
jne 0x404b8c
xor eax, eax
jmp 0x404b94
mov eax, dword [ebx]
jmp 0x404b6f
mov eax, dword [edx + 0x14]
sub eax, ecx
sar eax, 2
mov esi, dword [edx + 0x10]
mov edx, esi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x404bb3
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x20]
mov dword [esi], eax
add esi, 4
mov dword [ecx + 0x10], esi
jmp 0x404bd2
cmp ecx, esi
jbe 0x404bbc
call fcn.00457319
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
lea edx, [edi + 4]
push edx
push esi
push eax
lea eax, [esp + 0x68]
push eax
call fcn.00406bf0
test ebx, ebx
jne 0x404bf3
call fcn.00457319
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x404be7
call fcn.00457319
mov eax, dword [esp + 0x38]
add edi, 8
jmp 0x404b40
mov eax, dword [ebx]
jmp 0x404bdd
cmp dword [esp + 0x34], 0
je 0x404c0b
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00456e75
add esp, 4
mov edx, dword [esp + 0x28]
xor eax, eax
push edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
call fcn.00456e75
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret