Function at 0x4578e0
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 0x45793e
mov edi, eax
mov dword [esp + 0x10], edi
jmp 0x4579c3
test byte [edx + 0x24], 0x20
je 0x457949
mov eax, dword [edx + 8]
jmp 0x4579bd
push 0x3c
lea ecx, [esp + 0x40]
push 0
push ecx
call fcn.00494780
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 0x4579b1
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 0x4579db
mov dword [esp + 0x30], 0
jmp 0x4579fa
cwde
cdq
push edx
push eax
call fcn.0041db90
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 0x457b53
test byte [ecx + 0x2c], 0x20
jne 0x457b53
mov eax, dword [ecx]
mov ecx, dword [eax]
test dword [ecx + 0x1c], 0x8000
je 0x457b53
cmp dword [ebp + 0x44], 0
jne 0x457b53
mov eax, dword [ebp + 0x28]
test al, 1
jne 0x457b53
test byte [edx + 0x24], 0x20
jne 0x457b53
test al, 0x28
jne 0x457b53
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 0x457b3f
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
and eax, dword [edi + 0x20]
and ecx, dword [edi + 0x24]
or eax, ecx
jne 0x457b25
push eax
push eax
mov eax, dword [esp + 0x24]
mov ecx, edi
call fcn.00436c50
add esp, 8
test eax, eax
je 0x457b25
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 0x457ad4
test byte [edx + 0x24], 2
jne 0x457ad4
add eax, 0x1c
jmp 0x457ad7
add eax, 0xfffffff6
mov word [esi + 0x12], ax
test ax, ax
jge 0x457ae6
xor edx, edx
mov word [esi + 0x12], dx
mov eax, 0x2b
mov word [esi + 0x16], ax
call fcn.0041db40
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.00430e50
add esp, 4
mov dword [esp + 0x20], eax
add edi, 0x30
cmp dword [esp + 0x20], 0
je 0x457a60
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 0x457e83
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
jmp 0x457b64
mov edi, dword [esp + 0x10]
test edi, edi
je 0x457e83
mov eax, dword [edi + 0x24]
test eax, eax
je 0x457b8d
mov ecx, dword [ebp + 0x2c]
push eax
mov eax, dword [esp + 0x28]
push eax
push ecx
call fcn.00449ac0
add esp, 0xc
test eax, eax
je 0x457e5c
test dword [edi + 0x38], 0x100
jne 0x457e5c
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.004499a0
add esp, 0xc
cmp dword [edi + 0x2c], 0
mov ebp, eax
jg 0x457c3f
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.00428200
mov ebp, dword [esp + 0x88]
push esi
mov ecx, ebp
call fcn.00430e50
add esp, 0x10
mov word [esi + 0x16], bx
test eax, eax
jne 0x457e83
jmp 0x457e2b
test byte [edi + 0x38], 0x20
je 0x457c52
xor ecx, ecx
mov dword [esi + 0x24], 0x240
xor edi, edi
jmp 0x457c7e
mov eax, edi
call fcn.00428350
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 0x457c7b
mov eax, 0x200
mov dword [esi + 0x24], eax
test ebp, ebp
jne 0x457ce7
mov eax, dword [esp + 0x14]
test byte [eax + 0x24], 0x20
jne 0x457ce7
mov edx, dword [esp + 0x10]
cmp dword [edx + 0x24], ebp
jne 0x457ce7
mov eax, ecx
or eax, edi
jne 0x457e23
test byte [edx + 0x38], 4
jne 0x457e23
mov eax, edx
mov dx, word [eax + 0x30]
mov eax, dword [esp + 0x14]
cmp dx, word [eax + 0x2e]
jge 0x457e23
mov edx, dword [esp + 0x18]
test byte [edx + 0x2c], 4
jne 0x457e23
cmp dword [0x4c90c0], ebp
je 0x457e23
mov eax, edx
mov edx, dword [eax]
mov eax, dword [edx]
test byte [eax + 0x44], 0x20
jne 0x457e23
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 0x457dff
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 0x457d92
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.0042f0e0
add esp, 4
test eax, eax
je 0x457d92
movzx eax, word [edi + 8]
test ax, ax
jg 0x457d71
add ebp, eax
jmp 0x457d7b
dec ebp
test byte [edi + 0xc], 0x82
je 0x457d7b
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 0x457d42
movzx ecx, word [esi + 0x14]
cmp cx, bp
jl 0x457dcc
movsx edx, bp
movsx eax, cx
lea edi, [edx + 0x31]
cmp eax, edi
jle 0x457dad
movzx eax, cx
jmp 0x457dfb
lea edi, [edx + 0x1f]
cmp eax, edi
jle 0x457dba
inc ecx
movzx eax, cx
jmp 0x457dfb
sub eax, edx
movzx dx, byte [eax + 0x4b7b98]
add dx, cx
movzx eax, dx
jmp 0x457dfb
movsx ecx, cx
movsx eax, bp
lea edx, [ecx + 0x31]
cmp eax, edx
jle 0x457dde
movzx eax, bp
jmp 0x457dfb
lea edx, [ecx + 0x1f]
cmp eax, edx
jle 0x457deb
inc ebp
movzx eax, bp
jmp 0x457dfb
sub eax, ecx
movzx ax, byte [eax + 0x4b7b98]
add ax, bp
movzx eax, ax
mov word [esi + 0x14], ax
mov ecx, dword [esp + 0x24]
push ebx
push esi
push ecx
call fcn.00428200
mov ecx, dword [esp + 0x88]
push esi
call fcn.00430e50
add esp, 0x10
mov word [esi + 0x16], bx
test eax, eax
jne 0x457e83
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.00457220
add esp, 0x10
cmp dword [ebp + 0x14], 1
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
jne 0x457e5c
mov eax, dword [esp + 0x14]
or dword [eax + 0x24], 0x100
cmp dword [ebp + 0x44], 0
je 0x457e6c
mov dword [esp + 0x10], 0
jmp 0x457e73
mov eax, dword [edi + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
inc dword [esp + 0x28]
test eax, eax
je 0x457b60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret