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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x68f014]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
test ecx, ecx
je 0x4588ce
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], edx
mov byte [esp + 0x28], 0
jmp 0x4588d6
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
cmp edx, 1
jae 0x4588e8
mov bl, byte [esp + 0x2f]
xor esi, esi
mov byte [esp + 0x28], 1
jmp 0x4588f9
mov bl, byte [ecx]
mov esi, 1
inc ecx
dec edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], edx
lea edx, [esp + 0xc]
lea ecx, [esp + 0x10]
call fcn.00450120
test esi, eax
je case.0x45891f.145
movzx eax, bl
add eax, 0xffffff70
cmp eax, 6
ja case.0x45891f.145
jmp dword [eax*4 + 0x458d64]
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
cmp esi, 1
jae 0x458937
xor edi, edi
jmp 0x458944
mov al, byte [edx]
mov edi, 1
inc edx
mov byte [esp + 0x34], al
dec esi
cmp esi, 4
jae 0x458957
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x30], 0
jmp 0x458983
movzx ebx, byte [edx]
movzx eax, byte [edx + 1]
shl ebx, 8
or ebx, eax
mov dword [esp + 0x30], 1
movzx eax, byte [edx + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 3]
shl ebx, 8
add edx, 4
or ebx, eax
sub esi, 4
cmp esi, 2
jb case.0x45891f.145
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
shl ecx, 8
or cx, ax
and dword [esp + 0x30], edi
movzx edx, cx
mov dword [esp + 0xc], edx
je case.0x45891f.145
mov esi, dword [0x6b1580]
mov edi, esi
mov dword [0x6b1584], 0
test edi, edi
je 0x458a0f
cmp dword [edi + 0x10], 4
je 0x4589ce
mov edi, dword [edi]
test edi, edi
jne 0x4589c0
jmp 0x458a0f
push 0x48
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.005d1880
add esp, 0xc
mov dword [edi + 0x10], 2
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], 0x458610
mov dword [esp + 0x40], edi
mov dword [0x6b1584], 1
call fcn.00458d80
mov esi, dword [0x6b1580]
mov edx, dword [esp + 0xc]
mov ecx, ebx
and ecx, 0xfffffff0
test esi, esi
je case.0x45891f.145
nop dword [eax]
cmp dword [esi + 0x10], 2
jne 0x458a30
mov eax, dword [esi + 8]
and eax, 0xfffffff0
cmp eax, ecx
je 0x458a48
mov esi, dword [esi]
test esi, esi
jne 0x458a20
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.005cf250
mov esp, ebp
pop ebp
ret
test esi, esi
je case.0x45891f.145
mov al, byte [esp + 0x34]
test al, al
je 0x458ab7
mov ecx, 0xffff
mov word [esi + 0xc], cx
cmp al, 0xf3
jne 0x458a79
test byte [esi + 0x14], 0x10
je 0x458a79
mov dword [esi + 0x18], 0xa
mov eax, 5
jmp 0x458a7b
xor eax, eax
mov edi, dword [esp + 0x34]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x458a93
push edi
push esi
call eax
add esp, 8
mov eax, dword [esi + 0x24]
test eax, eax
je case.0x45891f.145
push edi
push esi
call eax
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.005cf250
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
and bl, 0xf
mov dword [esi + 0x10], 3
mov word [esi + 0xc], dx
mov byte [esi + 0x20], bl
mov eax, dword [eax + 8]
test eax, eax
je 0x458ad8
push esi
call eax
add esp, 4
mov eax, dword [esi + 0x24]
test eax, eax
je case.0x45891f.145
push 0
push esi
call eax
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.005cf250
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x24], 2
jb case.0x45891f.145
mov ecx, dword [esp + 0x14]
mov esi, dword [0x6b1580]
movzx edx, byte [ecx]
movzx eax, byte [ecx + 1]
shl edx, 8
or dx, ax
movzx eax, dx
test esi, esi
je case.0x45891f.145
nop word [eax + eax]
cmp dword [esi + 0x10], 3
jne 0x458b3c
cmp word [esi + 0xc], ax
je 0x458b54
mov esi, dword [esi]
test esi, esi
jne 0x458b30
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.005cf250
mov esp, ebp
pop ebp
ret
test esi, esi
je case.0x45891f.145
push 0x48
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.005d1880
add esp, 0xc
mov dword [esp + 0x38], 0x4586a0
lea ecx, [esp + 0x38]
mov dword [esp + 0x40], esi
call fcn.00458d80
test byte [esi + 0x14], 0x10
mov eax, 0xffff
mov word [esi + 0xc], ax
je 0x458b9f
mov dword [esi + 0x18], 0xa
mov eax, 5
jmp 0x458ba1
xor eax, eax
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x28]
test eax, eax
je 0x458bb1
push esi
call eax
add esp, 4
mov eax, dword [esi + 4]
mov eax, dword [eax + 0xc]
test eax, eax
je case.0x45891f.145
push esi
call eax
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.005cf250
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
cmp eax, 1
jae 0x458be8
xor esi, esi
jmp 0x458bef
inc edx
mov esi, 1
dec eax
cmp eax, 2
jae 0x458bfc
mov eax, dword [esp + 0xc]
xor ecx, ecx
jmp 0x458c11
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
shl ecx, 8
or cx, ax
movzx eax, cx
mov ecx, 1
test esi, ecx
je case.0x45891f.145
mov esi, dword [0x6b1580]
test esi, esi
je case.0x45891f.145
cmp dword [esi + 0x10], 1
jne 0x458c33
cmp word [esi + 0xc], ax
je 0x458c4b
mov esi, dword [esi]
test esi, esi
jne 0x458c27
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.005cf250
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x28]
test eax, eax
je 0x458c58
push esi
call eax
add esp, 4
mov eax, dword [esi + 4]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x458c68
push esi
call eax
add esp, 4
mov eax, 0xffff
mov dword [esi + 0x10], 0
mov word [esi + 0xc], ax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.005cf250
mov esp, ebp
pop ebp
ret
mov ebx, dword [esp + 0x24]
cmp ebx, 2
jb case.0x45891f.145
mov edx, dword [esp + 0x14]
sub ebx, 2
mov esi, dword [0x6b1580]
mov dword [esp + 0x24], ebx
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
add edx, 2
shl cx, 8
or cx, ax
mov dword [esp + 0x14], edx
movzx eax, cx
test esi, esi
je case.0x45891f.145
cmp dword [esi + 0x10], 3
jne 0x458cd4
cmp word [esi + 0xc], ax
je 0x458cec
mov esi, dword [esi]
test esi, esi
jne 0x458cc8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.005cf250
mov esp, ebp
pop ebp
ret
cmp ebx, 3
jae 0x458cfe
mov edi, dword [esp + 0xc]
xor ebx, ebx
mov byte [esp + 0x28], 1
jmp 0x458d26
movzx edi, byte [edx]
movzx eax, byte [edx + 1]
shl edi, 8
or edi, eax
movzx eax, byte [edx + 2]
shl edi, 8
or edi, eax
sub ebx, 3
lea eax, [edx + 3]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], eax
mov ebx, 1
lea edx, [esp + 0xc]
lea ecx, [esp + 0x10]
call fcn.00450120
test ebx, eax
je case.0x45891f.145
push dword [esp + 0x14]
mov eax, dword [esi + 4]
push dword [esp + 0x10]
push edi
mov eax, dword [eax + 0x10]
push esi
call eax
add esp, 0x10
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005cf250
mov esp, ebp
pop ebp
ret