Function at 0x404570
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 0x4045d6
cmp esi, edi
jbe 0x4045db
call fcn.004560b9
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 0x4045f2
call fcn.004560b9
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
test edi, edi
je 0x404600
cmp edi, eax
je 0x404605
call fcn.004560b9
cmp esi, dword [esp + 0x44]
je 0x40464d
test edi, edi
jne 0x404645
call fcn.004560b9
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x404620
call fcn.004560b9
mov ecx, dword [esi + 0x14]
add dword [esp + 0x10], ecx
test edi, edi
jne 0x404649
call fcn.004560b9
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x40463c
call fcn.004560b9
mov eax, dword [esp + 0x24]
add esi, 0x1c
jmp 0x4045e1
mov eax, dword [edi]
jmp 0x404616
mov eax, dword [edi]
jmp 0x404632
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 0x40469d
cmp dword [ecx + 0x18], eax
je 0x40469d
push 1
push eax
call fcn.00403660
test al, al
je 0x40469d
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x18], 8
mov dword [eax + 0x14], esi
jb 0x404697
mov edi, dword [edi]
xor edx, edx
mov word [edi + esi*2], dx
push 4
call fcn.004560e4
xor edx, edx
add esp, 4
cmp eax, edx
je 0x4046b9
lea ecx, [esp + 0x28]
mov dword [eax], ecx
mov dword [esp + 0x28], eax
jmp 0x4046bd
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 0x4046d8
mov esi, dword [eax]
jmp 0x4046da
mov esi, eax
cmp esi, edx
je 0x4046fe
cmp ecx, 8
jb 0x4046e7
mov edx, dword [eax]
jmp 0x4046e9
mov edx, eax
cmp edx, esi
ja 0x4046fe
cmp ecx, 8
jb 0x4046f4
mov eax, dword [eax]
mov edx, dword [ebx + 0x14]
lea eax, [eax + edx*2]
cmp esi, eax
jbe 0x404703
call fcn.004560b9
mov dword [esp + 0x1c], esi
mov edx, dword [ebx + 0x18]
lea edi, [ebx + 4]
cmp edx, 8
jb 0x404716
mov ecx, dword [edi]
jmp 0x404718
mov ecx, edi
mov eax, dword [ebx + 0x14]
add eax, eax
lea esi, [eax + ecx]
test esi, esi
je 0x404744
cmp edx, 8
jb 0x40472d
mov ecx, dword [edi]
jmp 0x40472f
mov ecx, edi
cmp ecx, esi
ja 0x404744
cmp edx, 8
jb 0x40473c
mov ecx, dword [edi]
jmp 0x40473e
mov ecx, edi
add ecx, eax
cmp esi, ecx
jbe 0x404749
call fcn.004560b9
mov ecx, dword [esp + 0x1c]
cmp ecx, esi
je 0x404c67
cmp ebx, 0xfffffffc
je 0x404779
cmp dword [ebx + 0x18], 8
jb 0x404764
mov eax, dword [edi]
jmp 0x404766
mov eax, edi
mov edx, dword [ebx + 0x14]
lea eax, [eax + edx*2]
cmp ecx, eax
jb 0x404779
call fcn.004560b9
mov ecx, dword [esp + 0x1c]
mov edx, 0x24
cmp dx, word [ecx]
jne 0x404bb3
mov edx, dword [ebx + 0x18]
cmp edx, 8
jb 0x404793
mov ecx, dword [edi]
jmp 0x404795
mov ecx, edi
mov eax, dword [ebx + 0x14]
add eax, eax
lea esi, [ecx + eax]
mov dword [esp + 0x10], esi
test esi, esi
je 0x4047c5
cmp edx, 8
jb 0x4047ae
mov ecx, dword [edi]
jmp 0x4047b0
mov ecx, edi
cmp ecx, esi
ja 0x4047c5
cmp edx, 8
jb 0x4047bd
mov ecx, dword [edi]
jmp 0x4047bf
mov ecx, edi
add eax, ecx
cmp esi, eax
jbe 0x4047ca
call fcn.004560b9
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x48], eax
cmp ebx, 0xfffffffc
je 0x40480e
mov edx, dword [ebx + 0x18]
cmp edx, 8
jb 0x4047e3
mov eax, dword [edi]
jmp 0x4047e5
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 0x404805
cmp edx, 8
jb 0x4047ff
mov eax, dword [edi]
jmp 0x404801
mov eax, edi
cmp ecx, eax
jae 0x40480a
call fcn.004560b9
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 0x40482d
test eax, eax
je 0x404828
cmp eax, ebx
je 0x40482d
call fcn.004560b9
cmp dword [esp + 0x10], esi
je 0x404c39
cmp ebx, 0xfffffffc
je 0x404859
cmp dword [ebx + 0x18], 8
jb 0x404846
mov eax, dword [edi]
jmp 0x404848
mov eax, edi
mov edx, dword [ebx + 0x14]
lea eax, [eax + edx*2]
cmp dword [esp + 0x1c], eax
jb 0x404859
call fcn.004560b9
test byte [esp + 0x40], 1
mov esi, dword [esp + 0x10]
mov dword [esp + 0x1c], esi
je 0x404876
and dword [esp + 0x40], 0xfffffffe
lea ecx, [esp + 0x74]
call fcn.00411190
cmp ebx, 0xfffffffc
je 0x404896
cmp dword [ebx + 0x18], 8
jb 0x404885
mov eax, dword [edi]
jmp 0x404887
mov eax, edi
mov ecx, dword [ebx + 0x14]
lea edx, [eax + ecx*2]
cmp esi, edx
jb 0x404896
call fcn.004560b9
mov eax, 0x24
cmp ax, word [esi]
jne 0x4049d8
mov edx, dword [ebx + 0x18]
lea edi, [ebx + 4]
cmp edx, 8
jb 0x4048b3
mov ecx, dword [edi]
jmp 0x4048b5
mov ecx, edi
mov eax, dword [ebx + 0x14]
add eax, eax
lea esi, [eax + ecx]
test esi, esi
je 0x4048e1
cmp edx, 8
jb 0x4048ca
mov ecx, dword [edi]
jmp 0x4048cc
mov ecx, edi
cmp ecx, esi
ja 0x4048e1
cmp edx, 8
jb 0x4048d9
mov ecx, dword [edi]
jmp 0x4048db
mov ecx, edi
add eax, ecx
cmp esi, eax
jbe 0x4048e6
call fcn.004560b9
mov ecx, dword [esp + 0x1c]
cmp ecx, esi
je 0x4049ae
cmp ebx, 0xfffffffc
je 0x404916
cmp dword [ebx + 0x18], 8
jb 0x404901
mov eax, dword [edi]
jmp 0x404903
mov eax, edi
mov edx, dword [ebx + 0x14]
lea eax, [eax + edx*2]
cmp ecx, eax
jb 0x404916
call fcn.004560b9
mov ecx, dword [esp + 0x1c]
mov edx, 0x24
cmp dx, word [ecx]
jne 0x4049ae
mov edx, dword [esp + 0x14]
mov edi, dword [edx + 0x18]
add edx, 4
cmp edi, 8
jb 0x404937
mov ecx, dword [edx]
jmp 0x404939
mov ecx, edx
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x14]
add eax, eax
lea esi, [eax + ecx]
test esi, esi
je 0x404969
cmp edi, 8
jb 0x404952
mov ecx, dword [edx]
jmp 0x404954
mov ecx, edx
cmp ecx, esi
ja 0x404969
cmp edi, 8
jb 0x404961
mov ecx, dword [edx]
jmp 0x404963
mov ecx, edx
add eax, ecx
cmp esi, eax
jbe 0x40496e
call fcn.004560b9
mov ecx, dword [esp + 0x14]
push 0x24
push esi
push ecx
lea edx, [esp + 0x78]
push edx
call fcn.00405f20
cmp ebx, 0xfffffffc
je 0x4049a4
cmp dword [ebx + 0x18], 8
jb 0x404990
mov eax, dword [ebx + 4]
jmp 0x404993
lea eax, [ebx + 4]
mov ecx, dword [ebx + 0x14]
lea edx, [eax + ecx*2]
cmp dword [esp + 0x1c], edx
jb 0x4049a4
call fcn.004560b9
add dword [esp + 0x1c], 2
jmp 0x4048a4
cmp ebx, 0xfffffffc
je 0x4049cc
cmp dword [ebx + 0x18], 8
jb 0x4049bd
mov eax, dword [edi]
jmp 0x4049bf
mov eax, edi
cmp ecx, eax
ja 0x4049cc
call fcn.004560b9
mov ecx, dword [esp + 0x1c]
sub ecx, 2
mov dword [esp + 0x1c], ecx
jmp 0x404c39
mov dword [esp + 0x10], 0
mov edx, dword [ebx + 0x18]
cmp edx, 8
jb 0x4049ec
mov ecx, dword [edi]
jmp 0x4049ee
mov ecx, edi
mov eax, dword [ebx + 0x14]
add eax, eax
lea esi, [eax + ecx]
test esi, esi
je 0x404a1a
cmp edx, 8
jb 0x404a03
mov ecx, dword [edi]
jmp 0x404a05
mov ecx, edi
cmp ecx, esi
ja 0x404a1a
cmp edx, 8
jb 0x404a12
mov ecx, dword [edi]
jmp 0x404a14
mov ecx, edi
add eax, ecx
cmp esi, eax
jbe 0x404a1f
call fcn.004560b9
mov ecx, dword [esp + 0x1c]
cmp ecx, esi
je 0x404aef
cmp ebx, 0xfffffffc
je 0x404a4f
cmp dword [ebx + 0x18], 8
jb 0x404a3a
mov eax, dword [edi]
jmp 0x404a3c
mov eax, edi
mov edx, dword [ebx + 0x14]
lea eax, [eax + edx*2]
cmp ecx, eax
jb 0x404a4f
call fcn.004560b9
mov ecx, dword [esp + 0x1c]
mov edx, 0x30
cmp dx, word [ecx]
ja 0x404aef
cmp ebx, 0xfffffffc
je 0x404a81
cmp dword [ebx + 0x18], 8
jb 0x404a6c
mov eax, dword [edi]
jmp 0x404a6e
mov eax, edi
mov edx, dword [ebx + 0x14]
lea eax, [eax + edx*2]
cmp ecx, eax
jb 0x404a81
call fcn.004560b9
mov ecx, dword [esp + 0x1c]
cmp word [ecx], 0x39
ja 0x404aef
mov esi, dword [esp + 0x10]
lea esi, [esi + esi*4]
add esi, esi
cmp ebx, 0xfffffffc
je 0x404ab4
cmp dword [ebx + 0x18], 8
jb 0x404a9f
mov eax, dword [edi]
jmp 0x404aa1
mov eax, edi
mov edx, dword [ebx + 0x14]
lea eax, [eax + edx*2]
cmp ecx, eax
jb 0x404ab4
call fcn.004560b9
mov ecx, dword [esp + 0x1c]
movzx edx, word [ecx]
lea eax, [esi + edx - 0x30]
mov dword [esp + 0x10], eax
cmp ebx, 0xfffffffc
je 0x404ae3
cmp dword [ebx + 0x18], 8
jb 0x404ace
mov eax, dword [edi]
jmp 0x404ad0
mov eax, edi
mov edx, dword [ebx + 0x14]
lea eax, [eax + edx*2]
cmp ecx, eax
jb 0x404ae3
call fcn.004560b9
mov ecx, dword [esp + 0x1c]
add ecx, 2
mov dword [esp + 0x1c], ecx
jmp 0x4049e0
cmp ebx, 0xfffffffc
je 0x404b0d
cmp dword [ebx + 0x18], 8
jb 0x404afe
mov eax, dword [edi]
jmp 0x404b00
mov eax, edi
cmp ecx, eax
ja 0x404b0d
call fcn.004560b9
mov ecx, dword [esp + 0x1c]
dec dword [esp + 0x10]
sub ecx, 2
cmp dword [esp + 0x20], 0
mov dword [esp + 0x1c], ecx
je 0x404b86
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 0x404b56
call fcn.004560b9
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
cmp esi, eax
jbe 0x404b56
call fcn.004560b9
mov edi, dword [esp + 0x28]
push esi
lea eax, [esp + 0x54]
mov ecx, ebx
mov dword [esp + 0x4c], esi
call fcn.004099c0
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.00406c80
mov ebx, dword [esp + 0x58]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x4c]
jae 0x404c39
mov ecx, eax
mov eax, dword [esp + 0x24]
push ecx
call fcn.00405660
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push 0
push eax
call fcn.00405d40
jmp 0x404c39
cmp ebx, 0xfffffffc
je 0x404bd3
cmp dword [ebx + 0x18], 8
jb 0x404bc2
mov eax, dword [edi]
jmp 0x404bc4
mov eax, edi
mov edx, dword [ebx + 0x14]
lea eax, [eax + edx*2]
cmp ecx, eax
jb 0x404bd3
call fcn.004560b9
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 0x404bf1
mov ecx, dword [edx]
jmp 0x404bf3
mov ecx, edx
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x14]
add eax, eax
lea esi, [eax + ecx]
test esi, esi
je 0x404c1f
cmp edi, 8
jb 0x404c0c
mov ecx, dword [edx]
jmp 0x404c0e
mov ecx, edx
cmp ecx, esi
ja 0x404c1f
cmp edi, 8
jb 0x404c19
mov edx, dword [edx]
add eax, edx
cmp esi, eax
jbe 0x404c24
call fcn.004560b9
mov ecx, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x18]
push esi
push ecx
lea edx, [esp + 0x68]
push edx
call fcn.00405f20
cmp ebx, 0xfffffffc
je 0x404c5d
cmp dword [ebx + 0x18], 8
jb 0x404c49
mov eax, dword [ebx + 4]
jmp 0x404c4c
lea eax, [ebx + 4]
mov ecx, dword [ebx + 0x14]
lea edx, [eax + ecx*2]
cmp dword [esp + 0x1c], edx
jb 0x404c5d
call fcn.004560b9
add dword [esp + 0x1c], 2
jmp 0x404707
cmp dword [esp + 0x20], 0
je 0x404d47
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jbe 0x404c87
call fcn.004560b9
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 0x404c9d
call fcn.004560b9
test ebx, ebx
je 0x404ca7
cmp ebx, dword [esp + 0x28]
je 0x404cac
call fcn.004560b9
cmp edi, esi
je 0x404d47
test ebx, ebx
jne 0x404cd8
call fcn.004560b9
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x404cc9
call fcn.004560b9
mov edx, dword [esp + 0x20]
mov ecx, dword [edx + 0xc]
test ecx, ecx
jne 0x404cdc
xor eax, eax
jmp 0x404ce4
mov eax, dword [ebx]
jmp 0x404cbf
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 0x404d03
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x20]
mov dword [esi], eax
add esi, 4
mov dword [ecx + 0x10], esi
jmp 0x404d22
cmp ecx, esi
jbe 0x404d0c
call fcn.004560b9
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.00406dd0
test ebx, ebx
jne 0x404d43
call fcn.004560b9
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x404d37
call fcn.004560b9
mov eax, dword [esp + 0x38]
add edi, 8
jmp 0x404c90
mov eax, dword [ebx]
jmp 0x404d2d
cmp dword [esp + 0x34], 0
je 0x404d5b
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00455c1a
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.00455c1a
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret