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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0xc]
push esi
xor esi, esi
push edi
cmp eax, esi
je 0x459c22
push eax
call dword [0x4fbc34]
add esp, 4
mov edi, dword [ebx + 0x18]
cmp byte [edi + 9], 0
je 0x459c39
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x459c39
call fcn.00406640
mov eax, dword [ebx]
cmp eax, esi
je 0x459c50
mov eax, dword [eax + 0xc]
cmp eax, esi
je 0x459c50
push eax
call dword [0x4fbc34]
add esp, 4
mov edi, dword [ebx + 0x1c]
cmp edi, esi
je 0x459c65
cmp edi, 5
je 0x459c65
cmp edi, 6
jne 0x45a554
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x20], edx
mov edx, dword [ecx + 4]
mov edx, dword [edx]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x24], esi
cmp dword [ebx], esi
je 0x459c97
mov eax, dword [eax + 4]
cmp byte [eax + 0x14], 2
jne 0x459c97
mov dword [ebp - 4], 5
jmp 0x459e4f
mov dword [ebp - 4], esi
cmp dword [ebx + 0xc], esi
jne 0x459ccd
push 2
push ecx
call fcn.0044c580
add esp, 8
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x459e4f
mov eax, dword [ebx + 4]
lea ecx, [ebx + 8]
push ecx
push 1
mov dword [ebx + 0xc], 1
call fcn.004129a0
add esp, 8
mov edi, dword [ebx + 0x18]
cmp byte [edi + 8], 0
jne 0x459e4f
cmp byte [edi + 9], 0
mov ebx, dword [edi + 4]
mov dword [ebp - 4], esi
je 0x459cf4
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x459cf4
call fcn.00406640
mov al, byte [edi + 8]
cmp al, 2
je 0x459e2d
cmp al, 1
je 0x459e2d
movzx ecx, word [ebx + 0x16]
test cl, 0x40
je 0x459d23
mov edx, dword [ebx + 0x4c]
cmp dword [edx], esi
je 0x459d23
mov dword [ebp - 4], 0x106
jmp 0x459e2d
cmp byte [edi + 9], 0
mov eax, dword [edi + 4]
je 0x459d65
cmp dword [eax + 0x4c], edi
je 0x459d43
test byte [eax + 0x16], 0x20
je 0x459d43
mov dword [ebp - 4], 0x106
jmp 0x459e2d
mov eax, dword [eax + 0x48]
cmp eax, esi
je 0x459d65
mov edx, 1
nop
cmp dword [eax], edi
je 0x459d5e
cmp dword [eax + 4], edx
jne 0x459d5e
cmp byte [eax + 8], dl
jne 0x459d17
mov eax, dword [eax + 0xc]
cmp eax, esi
jne 0x459d50
mov eax, ecx
and eax, 0xfff7
mov dword [ebp - 4], esi
mov word [ebx + 0x16], ax
cmp dword [ebx + 0x2c], esi
jne 0x459d80
or eax, 8
mov word [ebx + 0x16], ax
nop
cmp dword [ebx + 0xc], 0
jne 0x459d96
mov eax, ebx
call fcn.0044c2e0
mov dword [ebp - 4], eax
test eax, eax
je 0x459d80
jmp 0x459d9c
cmp dword [ebp - 4], 0
je 0x459dbc
cmp byte [ebx + 0x14], 0
jne 0x459dbc
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x459dbc
mov dword [ebx + 0xc], 0
mov eax, dword [eax + 0x44]
push eax
call fcn.0044b910
add esp, 4
cmp byte [ebp - 4], 5
jne 0x459dfa
cmp byte [ebx + 0x14], 0
jne 0x459dfa
mov esi, dword [ebx + 4]
add esi, 0x1bc
je 0x459dfa
mov ecx, dword [esi]
test ecx, ecx
je 0x459dfa
mov eax, dword [esi + 8]
test eax, eax
js 0x459dfa
mov edx, dword [esi + 4]
push eax
push edx
call ecx
add esp, 8
test eax, eax
je 0x459df3
inc dword [esi + 8]
jmp 0x459d80
mov dword [esi + 8], 0xffffffff
cmp dword [ebp - 4], 0
jne 0x459e2d
cmp byte [edi + 8], 0
jne 0x459e1f
inc dword [ebx + 0x28]
cmp byte [edi + 9], 0
je 0x459e1f
mov byte [edi + 0x28], 1
mov eax, dword [ebx + 0x48]
lea ecx, [edi + 0x20]
mov dword [edi + 0x2c], eax
mov dword [ebx + 0x48], ecx
mov byte [edi + 8], 1
cmp byte [ebx + 0x14], 1
jae 0x459e2d
mov byte [ebx + 0x14], 1
cmp byte [edi + 9], 0
je 0x459e3f
dec dword [edi + 0xc]
jne 0x459e3f
mov esi, edi
call fcn.00406620
mov edx, dword [ebp - 4]
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], edx
mov dword [ebp - 0x24], 1
cmp dword [ebp - 4], 0
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax + 4]
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
mov esi, dword [eax + 0x20]
mov eax, dword [eax]
movzx eax, byte [eax + 5]
mov edx, dword [ecx + 0x20]
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], esi
mov dword [ebp - 0x30], eax
jne 0x459e86
cmp eax, 5
jne 0x459e86
cmp edx, esi
je 0x459e86
mov dword [ebp - 4], 8
mov ecx, dword [ecx + 0x2c]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 0xc]
test eax, eax
js 0x459e9f
cmp dword [ebp - 0x18], eax
jge 0x459f0b
mov esi, dword [ebx + 0x10]
cmp esi, dword [ebp - 0x1c]
ja 0x459f0b
cmp dword [ebp - 4], 0
jne 0x459f50
mov edx, dword [ebx + 0x18]
mov ecx, dword [edx + 4]
mov eax, dword [0x4fbcf0]
xor edx, edx
div dword [ecx + 0x20]
inc eax
cmp esi, eax
je 0x459efe
mov edi, dword [ebp - 0x20]
lea edx, [ebp - 0x28]
push edx
push esi
mov eax, 2
call fcn.0043e0f0
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
jne 0x459efe
mov edi, dword [ebp - 0x28]
mov eax, dword [edi + 4]
push 0
push eax
push esi
push ebx
call fcn.00448c40
push edi
mov dword [ebp - 4], eax
call fcn.0044b910
add esp, 0x14
mov eax, 1
add dword [ebx + 0x10], eax
add dword [ebp - 0x18], eax
jmp 0x459e93
cmp dword [ebp - 4], 0
jne 0x459f50
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebx + 0x10]
mov ecx, esi
sub ecx, eax
inc ecx
mov dword [ebx + 0x24], esi
mov dword [ebx + 0x20], ecx
cmp eax, esi
ja 0x459f5d
cmp dword [ebx + 0x28], 0
jne 0x45a3b6
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
mov eax, dword [edx + 4]
mov eax, dword [eax]
mov edx, dword [eax + 0x58]
mov dword [ecx + 0x2c], edx
mov dword [eax + 0x58], ecx
mov dword [ecx + 0x28], 1
jmp 0x45a3b6
cmp dword [ebp - 4], 0x65
jne 0x45a3b6
mov esi, dword [ebp - 0x1c]
test esi, esi
jne 0x459fb2
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
cmp byte [esi + 9], 0
je 0x459f7d
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x459f7d
mov edi, esi
call fcn.00406640
mov ecx, dword [esi + 4]
mov dword [ecx + 0x2c], 0
mov ebx, dword [esi + 4]
call fcn.004486a0
cmp byte [esi + 9], 0
mov edi, eax
je 0x459fa1
dec dword [esi + 0xc]
jne 0x459fa1
call fcn.00406620
mov dword [ebp - 4], edi
mov esi, 1
test edi, edi
je 0x459fb2
cmp edi, 0x65
jne 0x459fcf
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
inc eax
mov ecx, edx
push eax
mov eax, dword [ecx + 4]
mov ebx, 1
call fcn.00448ba0
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x45a3b6
mov edi, dword [ebp + 8]
mov eax, dword [edi]
test eax, eax
je 0x459fe7
call fcn.00420560
cmp dword [ebp - 0x30], 5
jne 0x45a005
mov eax, dword [edi + 4]
push 2
call fcn.0044f0f0
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x45a3b6
mov ebx, dword [ebp - 0x14]
cmp ebx, dword [ebp - 8]
jge 0x45a039
mov eax, dword [ebp - 8]
cdq
idiv ebx
mov ecx, eax
lea eax, [ecx + esi - 1]
cdq
idiv ecx
mov edx, dword [ebp + 8]
mov edi, eax
mov eax, dword [edx + 4]
mov ecx, dword [eax + 4]
mov eax, dword [0x4fbcf0]
xor edx, edx
div dword [ecx + 0x20]
inc eax
cmp edi, eax
jne 0x45a044
dec edi
jmp 0x45a044
mov eax, ebx
cdq
idiv dword [ebp - 8]
mov edi, eax
imul edi, esi
cmp ebx, dword [ebp - 8]
jge 0x45a30a
mov eax, dword [ebp - 0x14]
cdq
mov ecx, eax
mov ebx, edx
push ebx
mov eax, esi
cdq
push ecx
push edx
push eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ebx
call fcn.004b9fa0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
mov esi, dword [eax + 0x18]
mov dword [ebp - 0x28], edx
mov edx, dword [eax + 0x3c]
mov dword [ebp - 0x18], edx
mov ebx, edi
jmp 0x45a080
cmp ebx, esi
ja 0x45a0f0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 4]
mov eax, dword [0x4fbcf0]
xor edx, edx
div dword [ecx + 0x20]
inc eax
cmp ebx, eax
je 0x45a0e7
mov edi, dword [ebp - 0x10]
lea edx, [ebp - 0x30]
push edx
push ebx
xor eax, eax
call fcn.0043e0f0
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
jne 0x45a0e7
mov edi, dword [ebp - 0x30]
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 0x94]
cmp ecx, dword [eax + 0x98]
jbe 0x45a0d4
push edi
call fcn.00447800
add esp, 4
jmp 0x45a0db
mov eax, edi
call fcn.00447650
push edi
mov dword [ebp - 4], eax
call fcn.0044b910
add esp, 4
inc ebx
cmp dword [ebp - 4], 0
je 0x45a080
jmp 0x45a108
cmp dword [ebp - 4], 0
jne 0x45a108
mov eax, dword [ebp - 0x10]
push 1
push 0
call fcn.0044ad80
add esp, 8
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
mov esi, dword [0x4fbcf0]
mov ecx, dword [ebp - 0x28]
lea eax, [esi + edx]
cdq
cmp edx, ecx
jg 0x45a128
jl 0x45a123
cmp eax, dword [ebp - 0x2c]
jae 0x45a128
mov dword [ebp - 0x34], edx
jmp 0x45a12e
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], ecx
cmp dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
lea eax, [esi + ecx]
cdq
mov esi, eax
mov ebx, edx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ebx
jne 0x45a3b6
jmp 0x45a153
mov ebx, dword [ebp - 8]
cmp ebx, dword [ebp - 0x34]
jg 0x45a27f
jl 0x45a167
cmp esi, dword [ebp - 0x38]
jae 0x45a27f
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
lea edx, [ebp - 0x1c]
push edx
push eax
push ecx
push ebx
push esi
mov dword [ebp - 0x1c], 0
call fcn.004b9ef0
mov edi, dword [ebp - 0x20]
inc eax
push eax
xor eax, eax
call fcn.0043e0f0
mov edi, dword [ebp - 0x1c]
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
jne 0x45a1b5
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
push ebx
mov ebx, dword [ebp - 0x14]
push esi
push ebx
push eax
mov eax, dword [edx + 0xc]
push ecx
call eax
add esp, 0x14
mov dword [ebp - 4], eax
test edi, edi
je 0x45a264
test byte [edi + 0x18], 0x40
mov ebx, dword [edi + 0x10]
je 0x45a206
mov ecx, dword [ebx + 0x88]
dec dword [ebx + 0x78]
mov dword [edi + 0xc], ecx
mov eax, dword [ebx + 0x98]
mov esi, dword [ebx + 0x3c]
mov dword [ebx + 0x88], edi
mov edx, dword [edi + 4]
mov ecx, dword [edi + 0x14]
push edx
cdq
push edx
push eax
dec ecx
push 0
push ecx
call fcn.004b9fa0
push edx
push eax
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
push esi
call edx
mov esi, dword [ebp - 0xc]
add esp, 0x10
jmp 0x45a20d
mov eax, edi
call fcn.00404020
cmp dword [ebx + 0x78], 0
jne 0x45a264
mov eax, dword [ebx + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x45a264
mov al, byte [ebx + 0x10]
cmp al, 6
je 0x45a25f
test al, al
je 0x45a25f
cmp al, 2
jb 0x45a24d
mov eax, dword [0x50400c]
test eax, eax
je 0x45a239
call eax
mov eax, ebx
call fcn.0044b4e0
mov eax, dword [0x504010]
test eax, eax
je 0x45a25f
call eax
jmp 0x45a25f
cmp byte [ebx + 4], 0
jne 0x45a25f
push 0
push 0
call fcn.00410ef0
add esp, 8
call fcn.00419be0
add esi, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
adc dword [ebp - 8], ecx
cmp dword [ebp - 4], 0
mov dword [ebp - 0xc], esi
je 0x45a150
jmp 0x45a3b6
cmp dword [ebp - 4], 0
jne 0x45a3b6
mov esi, dword [ebp - 0x18]
mov edx, dword [esi]
mov ecx, dword [edx + 0x18]
lea eax, [ebp - 0x40]
push eax
push esi
call ecx
add esp, 8
test eax, eax
jne 0x45a2c1
mov ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x3c], ecx
jl 0x45a2c1
jg 0x45a2b1
mov edx, dword [ebp - 0x40]
cmp edx, dword [ebp - 0x2c]
jbe 0x45a2c1
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push ecx
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
call edx
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
jne 0x45a3b6
mov esi, dword [ebp - 0x10]
mov ecx, dword [esi + 0x3c]
cmp dword [ecx], eax
je 0x45a2f2
mov eax, dword [ecx]
push 0
push 0x15
push ecx
mov ecx, dword [eax + 0x28]
call ecx
add esp, 0xc
cmp eax, 0xc
jne 0x45a2ee
xor eax, eax
jmp 0x45a2f2
test eax, eax
jne 0x45a31c
cmp byte [esi + 7], 0
jne 0x45a31c
movzx ecx, byte [esi + 0xb]
mov eax, dword [esi + 0x3c]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x14]
call eax
jmp 0x45a319
mov eax, dword [ebp - 0x10]
push 0
push 0
mov dword [eax + 0x18], edi
call fcn.0044ad80
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
jne 0x45a3b6
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 4]
cmp byte [edi + 8], al
je 0x45a3af
cmp byte [edi + 9], al
je 0x45a344
inc dword [edi + 0xc]
cmp byte [edi + 0xa], al
jne 0x45a344
call fcn.00406640
mov cl, 2
cmp byte [edi + 8], cl
jne 0x45a398
mov ebx, dword [edi + 4]
mov esi, dword [ebx]
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x30], ebx
test eax, eax
jne 0x45a4a8
cmp byte [esi + 0x10], cl
jne 0x45a478
cmp byte [esi + 4], al
je 0x45a478
cmp byte [esi + 5], 1
jne 0x45a478
mov byte [esi + 0x10], 1
dec dword [edi + 0x14]
mov ecx, dword [ebx + 0x3c]
push ecx
mov byte [ebx + 0x14], 1
call fcn.00403cf0
add esp, 4
mov dword [ebx + 0x3c], 0
call fcn.0044c990
cmp byte [edi + 9], 0
je 0x45a3af
dec dword [edi + 0xc]
jne 0x45a3af
mov esi, edi
call fcn.00406620
mov dword [ebp - 4], 0x65
cmp dword [ebp - 0x24], 0
je 0x45a535
mov ebx, dword [ebp + 8]
mov edi, dword [ebx + 0x18]
cmp byte [edi + 8], 2
jne 0x45a420
cmp byte [edi + 9], 0
mov esi, dword [edi + 4]
je 0x45a3e3
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x45a3e3
call fcn.00406640
cmp byte [esi + 0x11], 0
je 0x45a3f2
call fcn.004589a0
test eax, eax
jne 0x45a40e
cmp byte [esi + 0x13], 0
je 0x45a400
mov edx, dword [esi]
mov eax, dword [esi + 0x2c]
mov dword [edx + 0x18], eax
mov eax, dword [esi]
push 0
push 0
call fcn.0044ad80
add esp, 8
cmp byte [edi + 9], 0
je 0x45a420
dec dword [edi + 0xc]
jne 0x45a420
mov esi, edi
call fcn.00406620
mov edi, dword [ebx + 0x18]
cmp byte [edi + 8], 0
je 0x45a535
cmp byte [edi + 9], 0
je 0x45a441
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x45a441
call fcn.00406640
cmp byte [edi + 8], 2
jne 0x45a51e
mov ebx, dword [edi + 4]
mov esi, dword [ebx]
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x30], ebx
test eax, eax
jne 0x45a523
cmp byte [esi + 0x10], 2
jne 0x45a4d0
cmp byte [esi + 4], al
je 0x45a4d0
cmp byte [esi + 5], 1
jne 0x45a4d0
mov byte [esi + 0x10], 1
jmp 0x45a504
movzx edx, byte [esi + 0x13]
inc dword [esi + 0x64]
push 1
push edx
mov ebx, esi
call fcn.00410ef0
mov ecx, eax
and ecx, 0xff
add esp, 8
cmp ecx, 0xd
je 0x45a49e
cmp ecx, 0xa
jne 0x45a4a5
mov dword [esi + 0x28], eax
mov byte [esi + 0x10], 6
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x45a37e
cmp byte [edi + 9], 0
je 0x45a4c5
dec dword [edi + 0xc]
jne 0x45a4c5
mov esi, edi
call fcn.00406620
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
jmp 0x45a3b6
movzx ecx, byte [esi + 0x13]
inc dword [esi + 0x64]
push 1
push ecx
mov ebx, esi
call fcn.00410ef0
mov ecx, eax
and ecx, 0xff
add esp, 8
cmp ecx, 0xd
je 0x45a4f6
cmp ecx, 0xa
jne 0x45a4fd
mov dword [esi + 0x28], eax
mov byte [esi + 0x10], 6
mov ebx, dword [ebp - 0x30]
test eax, eax
jne 0x45a523
dec dword [edi + 0x14]
mov edx, dword [ebx + 0x3c]
push edx
mov byte [ebx + 0x14], 1
call fcn.00403cf0
add esp, 4
mov dword [ebx + 0x3c], 0
call fcn.0044c990
cmp byte [edi + 9], 0
je 0x45a535
dec dword [edi + 0xc]
jne 0x45a535
mov esi, edi
call fcn.00406620
cmp dword [ebp - 4], 0xc0a
jne 0x45a545
mov dword [ebp - 4], 7
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x1c], ecx
mov edi, ecx
mov ebx, eax
xor esi, esi
mov eax, dword [ebx]
cmp eax, esi
je 0x45a56b
mov eax, dword [eax + 0xc]
cmp eax, esi
je 0x45a56b
push eax
call dword [0x4fbc3c]
add esp, 4
mov esi, dword [ebx + 0x18]
cmp byte [esi + 9], 0
je 0x45a581
dec dword [esi + 0xc]
jne 0x45a581
call fcn.00406620
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0x14]
mov eax, dword [edx + 0xc]
test eax, eax
je 0x45a595
push eax
call dword [0x4fbc3c]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret