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

Disassembly:
sub esp, 0x68
push ebx
mov ebx, dword [esp + 0x70]
mov ecx, dword [ebx]
push ebp
push esi
mov esi, dword [ebx + 0xc]
mov dword [esp + 0x30], 0xffffffff
movzx eax, byte [esi + 0x10]
mov edx, dword [ecx + 4]
lea eax, [eax + eax*8]
lea ebp, [edx + eax*8 + 8]
mov eax, dword [ebx + 4]
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x44]
push edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 1
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], edx
test eax, eax
je 0x45807e
mov edi, eax
mov dword [esp + 0x10], edi
jmp 0x458103
test byte [edx + 0x24], 0x20
je 0x458089
mov eax, dword [edx + 8]
jmp 0x4580fd
push 0x3c
lea ecx, [esp + 0x40]
push 0
push ecx
call fcn.00494ec0
mov edx, 1
mov eax, edx
mov word [esp + 0x7c], ax
mov eax, dword [esp + 0x20]
mov word [esp + 0x7a], dx
lea ecx, [esp + 0x40]
lea edx, [esp + 0x38]
mov dword [esp + 0x54], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov byte [esp + 0x7e], 5
mov cx, word [eax + 0x2e]
mov word [esp + 0x78], cx
mov dx, word [eax + 0x2c]
xor eax, eax
add esp, 0xc
mov word [esp + 0x2c], dx
mov word [esp + 0x2e], ax
test byte [ebp + 0x28], 1
jne 0x4580f1
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 8]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x3c]
mov edi, eax
mov dword [esp + 0x10], eax
movzx eax, word [edx + 0x2c]
cmp ax, 0xa
mov dword [esp + 0x38], eax
jg 0x45811b
mov dword [esp + 0x30], 0
jmp 0x45813a
cwde
cdq
push edx
push eax
call fcn.0041e300
mov edx, dword [esp + 0x1c]
add esp, 8
sub ax, 0x21
movzx ecx, ax
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x18]
cmp dword [ebx + 0x10], 0
jne 0x458293
test byte [ecx + 0x2c], 0x20
jne 0x458293
mov eax, dword [ecx]
mov ecx, dword [eax]
test dword [ecx + 0x1c], 0x8000
je 0x458293
cmp dword [ebp + 0x44], 0
jne 0x458293
mov eax, dword [ebp + 0x28]
test al, 1
jne 0x458293
test byte [edx + 0x24], 0x20
jne 0x458293
test al, 0x28
jne 0x458293
mov eax, dword [esp + 0x24]
mov edi, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
lea ebp, [eax + eax*2]
shl ebp, 4
add ebp, edi
mov ebx, 0x4000
lea ecx, [ecx]
cmp edi, ebp
jae 0x45827f
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
and eax, dword [edi + 0x20]
and ecx, dword [edi + 0x24]
or eax, ecx
jne 0x458265
push eax
push eax
mov eax, dword [esp + 0x24]
mov ecx, edi
call fcn.00437390
add esp, 8
test eax, eax
je 0x458265
mov edx, 1
xor eax, eax
mov ecx, edx
mov word [esi + 0x18], dx
mov edx, dword [esi + 0x30]
mov word [esi + 0x2a], ax
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x38]
mov word [esi + 0x28], cx
mov ecx, dword [esp + 0x30]
mov dword [edx], edi
mov edx, dword [esp + 0x14]
add eax, ecx
mov word [esi + 0x12], ax
cmp dword [edx + 0xc], 0
jne 0x458214
test byte [edx + 0x24], 2
jne 0x458214
add eax, 0x1c
jmp 0x458217
add eax, 0xfffffff6
mov word [esi + 0x12], ax
test ax, ax
jge 0x458226
xor edx, edx
mov word [esi + 0x12], dx
mov eax, 0x2b
mov word [esi + 0x16], ax
call fcn.0041e2b0
mov word [esi + 0x14], ax
mov dword [esi + 0x24], ebx
mov ecx, dword [edi + 0x20]
mov edx, dword [edi + 0x24]
or ecx, dword [esp + 0x80]
or edx, dword [esp + 0x84]
mov dword [esi], ecx
mov ecx, dword [esp + 0x7c]
push esi
mov dword [esi + 4], edx
call fcn.00431590
add esp, 4
mov dword [esp + 0x20], eax
add edi, 0x30
cmp dword [esp + 0x20], 0
je 0x4581a0
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4585c3
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
jmp 0x4582a4
mov edi, dword [esp + 0x10]
test edi, edi
je 0x4585c3
mov eax, dword [edi + 0x24]
test eax, eax
je 0x4582cd
mov ecx, dword [ebp + 0x2c]
push eax
mov eax, dword [esp + 0x28]
push eax
push ecx
call fcn.0044a200
add esp, 0xc
test eax, eax
je 0x45859c
test dword [edi + 0x38], 0x100
jne 0x45859c
mov edx, dword [edi + 8]
movzx ebx, word [edx]
xor eax, eax
xor ecx, ecx
mov word [esi + 0x18], ax
xor edx, edx
mov word [esi + 0x2a], ax
mov eax, dword [esp + 0x80]
mov word [esi + 0x1a], cx
mov word [esi + 0x28], cx
mov ecx, dword [esp + 0x84]
mov dword [esi], eax
mov eax, dword [esp + 0x7c]
mov word [esi + 0x1c], dx
mov byte [esi + 0x11], dl
mov word [esi + 0x12], dx
mov dword [esi + 4], ecx
mov word [esi + 0x16], bx
mov dword [esi + 0x20], edi
mov edx, dword [ebp + 0x2c]
push edx
push edi
push eax
call fcn.0044a0e0
add esp, 0xc
cmp dword [edi + 0x2c], 0
mov ebp, eax
jg 0x45837f
mov eax, dword [esp + 0x24]
mov ecx, ebp
neg ecx
sbb cl, cl
and cl, byte [esp + 0x28]
push ebx
lea edx, [ebx + 0x10]
push esi
push eax
mov dword [esi + 0x24], 0x100
mov byte [esi + 0x11], cl
mov word [esi + 0x14], dx
call fcn.00428950
mov ebp, dword [esp + 0x88]
push esi
mov ecx, ebp
call fcn.00431590
add esp, 0x10
mov word [esi + 0x16], bx
test eax, eax
jne 0x4585c3
jmp 0x45856b
test byte [edi + 0x38], 0x20
je 0x458392
xor ecx, ecx
mov dword [esi + 0x24], 0x240
xor edi, edi
jmp 0x4583be
mov eax, edi
call fcn.00428aa0
mov ecx, eax
mov eax, dword [esp + 0x1c]
mov edi, edx
not ecx
and ecx, dword [eax + 0x38]
not edi
and edi, dword [eax + 0x3c]
mov edx, ecx
or edx, edi
mov eax, 0x240
je 0x4583bb
mov eax, 0x200
mov dword [esi + 0x24], eax
test ebp, ebp
jne 0x458427
mov eax, dword [esp + 0x14]
test byte [eax + 0x24], 0x20
jne 0x458427
mov edx, dword [esp + 0x10]
cmp dword [edx + 0x24], ebp
jne 0x458427
mov eax, ecx
or eax, edi
jne 0x458563
test byte [edx + 0x38], 4
jne 0x458563
mov eax, edx
mov dx, word [eax + 0x30]
mov eax, dword [esp + 0x14]
cmp dx, word [eax + 0x2e]
jge 0x458563
mov edx, dword [esp + 0x18]
test byte [edx + 0x2c], 4
jne 0x458563
cmp dword [0x4c90c0], ebp
je 0x458563
mov eax, edx
mov edx, dword [eax]
mov eax, dword [edx]
test byte [eax + 0x44], 0x20
jne 0x458563
mov eax, dword [esp + 0x10]
mov edx, ebp
neg edx
sbb dl, dl
and dl, byte [esp + 0x28]
mov byte [esi + 0x11], dl
movsx edx, word [eax + 0x30]
mov eax, edx
shl eax, 4
sub eax, edx
mov edx, dword [esp + 0x14]
movsx ebp, word [edx + 0x2e]
cdq
idiv ebp
or ecx, edi
lea eax, [eax + ebx + 1]
mov word [esi + 0x14], ax
je 0x45853f
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x2c]
lea ecx, [ebx + 0x10]
movzx ebp, cx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x38], eax
xor eax, eax
cmp dword [ecx + 0x5c], eax
mov dword [esp + 0x30], eax
jle 0x4584d2
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x18]
mov edi, dword [edx + 0x64]
add edi, dword [esp + 0x20]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x10]
mov ecx, dword [edi]
push eax
call fcn.0042f820
add esp, 4
test eax, eax
je 0x4584d2
movzx eax, word [edi + 8]
test ax, ax
jg 0x4584b1
add ebp, eax
jmp 0x4584bb
dec ebp
test byte [edi + 0xc], 0x82
je 0x4584bb
sub ebp, 0x13
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
add dword [esp + 0x20], 0x30
inc eax
cmp eax, dword [ecx + 0x5c]
mov dword [esp + 0x30], eax
jl 0x458482
movzx ecx, word [esi + 0x14]
cmp cx, bp
jl 0x45850c
movsx edx, bp
movsx eax, cx
lea edi, [edx + 0x31]
cmp eax, edi
jle 0x4584ed
movzx eax, cx
jmp 0x45853b
lea edi, [edx + 0x1f]
cmp eax, edi
jle 0x4584fa
inc ecx
movzx eax, cx
jmp 0x45853b
sub eax, edx
movzx dx, byte [eax + 0x4b7c80]
add dx, cx
movzx eax, dx
jmp 0x45853b
movsx ecx, cx
movsx eax, bp
lea edx, [ecx + 0x31]
cmp eax, edx
jle 0x45851e
movzx eax, bp
jmp 0x45853b
lea edx, [ecx + 0x1f]
cmp eax, edx
jle 0x45852b
inc ebp
movzx eax, bp
jmp 0x45853b
sub eax, ecx
movzx ax, byte [eax + 0x4b7c80]
add ax, bp
movzx eax, ax
mov word [esi + 0x14], ax
mov ecx, dword [esp + 0x24]
push ebx
push esi
push ecx
call fcn.00428950
mov ecx, dword [esp + 0x88]
push esi
call fcn.00431590
add esp, 0x10
mov word [esi + 0x16], bx
test eax, eax
jne 0x4585c3
mov ebp, dword [esp + 0x7c]
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push 0
push edi
push edx
push ebp
mov dword [ebp + 0x14], 0
call fcn.00457960
add esp, 0x10
cmp dword [ebp + 0x14], 1
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
jne 0x45859c
mov eax, dword [esp + 0x14]
or dword [eax + 0x24], 0x100
cmp dword [ebp + 0x44], 0
je 0x4585ac
mov dword [esp + 0x10], 0
jmp 0x4585b3
mov eax, dword [edi + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
inc dword [esp + 0x28]
test eax, eax
je 0x4582a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret