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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x475280]
xor eax, esp
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 0x18]
push edx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x74], eax
mov dword [esp + 0x3c], esi
call fcn.00458233
test eax, eax
js 0x458eb0
xor eax, eax
mov byte [esp + 0x13], al
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
jmp 0x458919
mov edi, dword [esp + 0x28]
xor eax, eax
mov ebx, eax
mov dword [esp + 0x30], eax
mov edx, 0x40ad04
mov dword [esp + 0x24], ebx
mov ecx, edi
mov dword [esp + 0x64], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
call fcn.00423ddc
test eax, eax
je 0x45897c
mov ecx, edi
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
ret
jne 0x458946
sub ecx, edx
lea eax, [esp + 0x24]
sar ecx, 1
xor edx, edx
push eax
lea eax, [ecx - 3]
mov ecx, edi
push eax
call fcn.00423cde
mov edi, eax
test edi, edi
js 0x458e90
mov ebx, dword [esp + 0x24]
mov ecx, ebx
jmp 0x458cce
xor edx, edx
mov dword [esp + 0x54], edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x6c], edx
test edi, edi
je 0x458c1c
xor eax, eax
cmp ax, word [edi]
je 0x458c1c
mov edx, 0x405d30
mov ecx, edi
call fcn.00423ddc
test eax, eax
je 0x458c11
xor eax, eax
mov edi, eax
mov eax, dword [esp + 0x28]
mov esi, edi
push 0x5b
push eax
call sub.msvcrt.dll_wcschr
pop ecx
pop ecx
test eax, eax
je 0x4589e1
push 0x5d
push eax
call sub.msvcrt.dll_wcschr
pop ecx
pop ecx
test eax, eax
je 0x4589da
inc edi
jmp 0x4589dd
xor esi, esi
inc esi
test esi, esi
je 0x4589bb
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x28]
push 0x5b
push edi
mov dword [esp + 0x24], esi
call sub.msvcrt.dll_wcschr
mov esi, dword [esp + 0x40]
pop ecx
pop ecx
test eax, eax
je 0x458bee
cmp dword [esp + 0x1c], 0
jne 0x458bee
lea ecx, [esp + 0x54]
sub eax, edi
push ecx
sar eax, 1
xor edx, edx
push eax
mov ecx, edi
call fcn.00423cde
mov ebx, dword [esp + 0x2c]
mov edi, eax
mov eax, ebx
shl eax, 2
push eax
mov eax, dword fs:[0x30]
push 8
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esp + 0x5c], eax
test eax, eax
jne 0x458a4b
mov edi, 0x8007000e
mov ecx, ebx
shl ecx, 2
push ecx
mov ecx, dword fs:[0x30]
push 8
push dword [ecx + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, eax
mov dword [esp + 0x48], ecx
test ecx, ecx
jne 0x458a72
mov edi, 0x8007000e
test edi, edi
js 0x458bb5
mov esi, dword [esp + 0x5c]
xor eax, eax
sub ecx, esi
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x40], ecx
push 0x5b
push eax
call sub.msvcrt.dll_wcschr
mov dword [esp + 0x70], eax
pop ecx
pop ecx
test eax, eax
je 0x458b56
cmp dword [esp + 0x58], ebx
jae 0x458b56
mov ecx, dword [esp + 0x40]
xor edx, edx
push 0x5d
mov dword [esi], edx
push eax
mov dword [ecx + esi], edx
call sub.msvcrt.dll_wcschr
mov dword [esp + 0x1c], eax
pop ecx
pop ecx
test eax, eax
je 0x458bac
mov edi, dword [esp + 0x68]
sub eax, edi
sar eax, 1
push 0x3d
push edi
mov dword [esp + 0x4c], eax
call sub.msvcrt.dll_wcschr
pop ecx
pop ecx
test eax, eax
je 0x458b8f
cmp eax, dword [esp + 0x14]
jae 0x458b8f
sub eax, edi
lea ecx, [esp + 0x50]
sar eax, 1
xor edx, edx
push ecx
push eax
inc edx
mov dword [esp + 0x54], eax
mov ecx, edi
call fcn.00423cde
mov edi, eax
mov eax, dword [esp + 0x50]
mov dword [esi], eax
test edi, edi
js 0x458b3f
mov edx, dword [esp + 0x4c]
lea eax, [esp + 0x6c]
mov ecx, dword [esp + 0x68]
inc edx
push eax
push dword [esp + 0x48]
call fcn.00423cde
mov ecx, dword [esp + 0x40]
mov edi, eax
mov eax, dword [esp + 0x6c]
mov dword [ecx + esi], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
inc dword [esp + 0x58]
add esi, 4
test ecx, ecx
je 0x458a8e
mov esi, dword [esp + 0x38]
test edi, edi
js 0x458bb5
mov eax, dword [esp + 0x5c]
xor edx, edx
mov ebx, dword [esp + 0x54]
mov edi, edx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], 1
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], eax
jmp 0x458c21
lea eax, [esp + 0x50]
xor edx, edx
push eax
push dword [esp + 0x48]
inc edx
mov ecx, edi
call fcn.00423cde
mov edi, eax
mov eax, dword [esp + 0x50]
mov dword [esi], eax
jmp 0x458b3f
xor ecx, ecx
inc ecx
mov dword [esp + 0x1c], ecx
jmp 0x458b47
cmp dword [esp + 0x54], 0
je 0x458bd2
push dword [esp + 0x54]
xor eax, eax
push eax
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ecx, dword [esp + 0x5c]
mov edx, ebx
call fcn.00457025
mov ecx, dword [esp + 0x48]
mov edx, ebx
call fcn.00457025
mov ebx, dword [esp + 0x24]
jmp 0x458c0d
mov edx, dword [esp + 0x2c]
xor eax, eax
xor edi, edi
mov dword [esp + 0x30], eax
xor ecx, ecx
inc edi
call fcn.00457025
mov edx, dword [esp + 0x2c]
xor ecx, ecx
call fcn.00457025
xor edx, edx
jmp 0x458c21
xor edi, edi
inc edi
xor edx, edx
mov dword [esp + 0x30], edx
jmp 0x458c21
mov edi, 0x80070057
test edi, edi
js 0x458e90
cmp dword [esp + 0x30], 0
je 0x458cca
cmp dword [esp + 0x18], 0
mov ecx, ebx
mov dword [esp + 0x4c], ecx
mov eax, edx
mov dword [esp + 0x14], edx
jbe 0x458cce
mov ecx, dword [esp + 0x18]
xor esi, esi
mov edx, dword [esp + 0x20]
cmp dword [edx + eax*4], esi
jne 0x458cb3
push 0xe
call fcn.00411710
mov edi, eax
mov eax, dword fs:[0x30]
push 2
push 8
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
test ebx, ebx
je 0x458c8e
push esi
xor edx, edx
mov ecx, ebx
push 0x40239c
inc edx
call fcn.004209b1
mov edi, eax
test edi, edi
js 0x458ca7
test ebx, ebx
je 0x458ca7
mov eax, dword fs:[0x30]
push ebx
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
inc eax
mov dword [esp + 0x14], eax
cmp eax, ecx
jb 0x458c55
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x4c]
jmp 0x458cce
mov ecx, dword [esp + 0x28]
test edi, edi
js 0x458e90
lea edx, [esp + 0x78]
call fcn.00456fba
mov edi, eax
test edi, edi
js 0x458e0c
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x7c]
push eax
mov eax, dword [esp + 0x68]
push ecx
push dword [eax + 0x38]
call fcn.0045e599
test eax, eax
js 0x458df5
push dword [esp + 0x3c]
mov eax, dword [esp + 0x64]
push esi
push dword [eax + 0x38]
call fcn.0045ea41
test eax, eax
js 0x458df5
xor eax, eax
mov byte [esp + 0x13], al
cmp dword [esp + 0x30], eax
je 0x458e01
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x458e03
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x64]
mov dword [esp + 0x44], eax
sub esi, eax
mov dword [esp + 0x40], ecx
mov ecx, dword [esi + eax]
mov ebx, dword [eax]
xor eax, eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], eax
test ebx, ebx
jne 0x458da6
push 0xe
call fcn.00411710
mov ecx, dword fs:[0x30]
mov edi, eax
push 2
push 8
push dword [ecx + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
test ebx, ebx
je 0x458d99
xor eax, eax
xor edx, edx
push eax
push 0x40239c
inc edx
mov ecx, ebx
call fcn.004209b1
mov edi, eax
mov ecx, dword [esp + 0x4c]
not edi
shr edi, 0x1f
mov dword [esp + 0x48], edi
push ebx
push ecx
push dword [esp + 0x44]
mov ecx, dword [esp + 0x6c]
call fcn.00458260
cmp dword [esp + 0x48], 0
mov edi, eax
je 0x458dd5
test ebx, ebx
je 0x458dd5
push ebx
xor eax, eax
push eax
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [esp + 0x44]
add eax, 4
sub dword [esp + 0x40], 1
mov dword [esp + 0x44], eax
jne 0x458d4f
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x24]
jmp 0x458e03
mov ecx, eax
mov byte [esp + 0x13], 1
call fcn.00456de1
mov edi, eax
lea ecx, [esp + 0x78]
call fcn.0045700f
test ebx, ebx
je 0x458e23
push ebx
xor eax, eax
push eax
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x64]
call fcn.00457025
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
call fcn.00457025
test edi, edi
js 0x458e90
cmp dword [esp + 0x34], 0
je 0x458e62
push dword [esp + 0x34]
mov eax, dword fs:[0x30]
xor ebx, ebx
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov dword [esp + 0x34], ebx
lea edx, [esp + 0x34]
lea ecx, [esp + 0x74]
call fcn.00456df7
mov edi, eax
cmp edi, 1
je 0x458ea2
test edi, edi
js 0x458e90
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
mov al, byte [esp + 0x13]
mov dword [esp + 0x38], esi
jmp 0x458e96
mov al, 1
mov byte [esp + 0x13], al
test al, al
je 0x458913
test edi, edi
js 0x458eb9
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x3c]
mov dword [ecx], eax
xor eax, eax
jmp 0x458eb7
mov ecx, eax
call fcn.00456de1
mov edi, eax
mov ecx, dword [esp + 0x84]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00471d10
mov esp, ebp
pop ebp
ret 0x14