Function at 0x45a59d
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 [0x479b74]
xor eax, esp
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 0x18]
push edx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x74], eax
mov dword [esp + 0x3c], esi
call fcn.0045a0a3
test eax, eax
js 0x45ad26
xor eax, eax
mov dword [esp + 0x50], eax
mov byte [esp + 0xf], al
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
jmp 0x45a5fd
xor eax, eax
mov edx, 0x414fc0
mov dword [esp + 0x30], eax
mov ecx, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], eax
call fcn.0042d77a
test eax, eax
je 0x45a6ad
mov ecx, ebx
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x45a62c
mov eax, dword [esp + 0x10]
sub ecx, edx
sar ecx, 1
mov edi, 0x8007000e
lea ebx, [ecx - 3]
test eax, eax
je 0x45a697
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x50]
jne 0x45a650
sub ecx, edx
sar ecx, 1
cmp ebx, ecx
ja 0x45a697
lea eax, [ebx + 1]
add eax, eax
push eax
mov eax, dword fs:[0x30]
push 8
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esp + 0x18], eax
test eax, eax
je 0x45a69c
push ebx
push dword [esp + 0x14]
lea edx, [ebx + 1]
mov ecx, eax
call fcn.004166c4
mov edi, eax
jmp 0x45a69c
mov edi, 0x80070057
test edi, edi
js 0x45ad02
mov ecx, dword [esp + 0x18]
jmp 0x45ab49
xor edx, edx
mov dword [esp + 0x60], edx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], edx
test ebx, ebx
je 0x45aaa3
xor eax, eax
cmp ax, word [ebx]
je 0x45aaa3
mov edx, 0x414fc8
mov ecx, ebx
call fcn.0042d77a
test eax, eax
je 0x45aa98
mov edi, dword [esp + 0x10]
xor eax, eax
mov ebx, eax
mov eax, edi
mov esi, ebx
push 0x5b
push eax
call sub.msvcrt.dll_wcschr
pop ecx
pop ecx
test eax, eax
je 0x45a714
push 0x5d
push eax
call sub.msvcrt.dll_wcschr
pop ecx
pop ecx
test eax, eax
je 0x45a70d
inc ebx
jmp 0x45a710
xor esi, esi
inc esi
test esi, esi
je 0x45a6ee
push 0x5b
push edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ebx
call sub.msvcrt.dll_wcschr
mov esi, dword [esp + 0x40]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x45aa80
cmp dword [esp + 0x20], 0
jne 0x45aa80
mov ecx, dword [esp + 0x10]
sub ebx, edi
sar ebx, 1
mov edi, 0x8007000e
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x50]
jne 0x45a74f
sub ecx, edx
sar ecx, 1
cmp ebx, ecx
ja 0x45a796
lea eax, [ebx + 1]
add eax, eax
push eax
mov eax, dword fs:[0x30]
push 8
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esp + 0x60], eax
test eax, eax
je 0x45a79b
push ebx
push dword [esp + 0x14]
lea edx, [ebx + 1]
mov ecx, eax
call fcn.004166c4
mov edi, eax
jmp 0x45a79b
mov edi, 0x80070057
mov ebx, dword [esp + 0x24]
mov eax, dword fs:[0x30]
shl ebx, 2
push ebx
push 8
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esp + 0x64], eax
test eax, eax
jne 0x45a7c1
mov edi, 0x8007000e
mov ecx, dword fs:[0x30]
push ebx
push 8
push dword [ecx + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edx, eax
mov dword [esp + 0x48], edx
test edx, edx
jne 0x45a7e3
mov edi, 0x8007000e
test edi, edi
js 0x45aa43
mov esi, dword [esp + 0x64]
xor eax, eax
sub edx, esi
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x40], edx
push 0x5b
push eax
call sub.msvcrt.dll_wcschr
mov ebx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x34], ebx
pop ecx
pop ecx
test ebx, ebx
je 0x45a983
cmp dword [esp + 0x5c], eax
jae 0x45a983
mov eax, dword [esp + 0x40]
xor ecx, ecx
push 0x5d
mov dword [esi], ecx
push ebx
mov dword [eax + esi], ecx
call sub.msvcrt.dll_wcschr
mov dword [esp + 0x1c], eax
pop ecx
pop ecx
test eax, eax
je 0x45aa37
sub eax, ebx
sar eax, 1
push 0x3d
push ebx
mov dword [esp + 0x4c], eax
call sub.msvcrt.dll_wcschr
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x45a9c2
cmp ebx, dword [esp + 0x14]
jae 0x45a9c2
mov ecx, dword [esp + 0x2c]
mov edi, 0x8007000e
sub ebx, dword [esp + 0x2c]
sar ebx, 1
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x50]
jne 0x45a87e
sub ecx, edx
sar ecx, 1
cmp ebx, 1
jb 0x45a8d3
cmp ecx, 1
jb 0x45a8d3
cmp ebx, ecx
ja 0x45a8d3
lea eax, [ebx + ebx]
push eax
mov eax, dword fs:[0x30]
push 8
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esp + 0x54], eax
test eax, eax
je 0x45a8d8
lea ecx, [ebx - 1]
mov edx, ebx
push ecx
mov ecx, dword [esp + 0x30]
add ecx, 2
push ecx
mov ecx, eax
call fcn.004166c4
mov edi, eax
jmp 0x45a8d8
mov edi, 0x80070057
mov eax, dword [esp + 0x54]
mov dword [esi], eax
test edi, edi
js 0x45a968
mov ecx, dword [esp + 0x2c]
lea edx, [ebx + 1]
mov dword [esp + 0x4c], edx
mov edi, 0x8007000e
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x50]
jne 0x45a8f9
sub ecx, ebx
mov ebx, dword [esp + 0x44]
sar ecx, 1
cmp ebx, edx
jb 0x45a958
cmp edx, ecx
ja 0x45a958
cmp ebx, ecx
ja 0x45a958
sub ebx, edx
lea eax, [ebx + 1]
add eax, eax
push eax
mov eax, dword fs:[0x30]
push 8
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esp + 0x58], eax
test eax, eax
je 0x45a95d
mov eax, dword [esp + 0x2c]
lea edx, [ebx + 1]
mov ecx, dword [esp + 0x4c]
push ebx
lea ecx, [eax + ecx*2]
push ecx
mov ecx, dword [esp + 0x60]
call fcn.004166c4
mov edi, eax
jmp 0x45a95d
mov edi, 0x80070057
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x58]
mov dword [eax + esi], ecx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
inc dword [esp + 0x5c]
add esi, 4
test ecx, ecx
je 0x45a7ff
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x38]
test edi, edi
js 0x45aa43
mov edx, dword [esp + 0x64]
xor ecx, ecx
mov ebx, dword [esp + 0x10]
mov edi, ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x28], edx
xor edx, edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
jmp 0x45aaac
mov ecx, dword [esp + 0x2c]
mov edi, 0x8007000e
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x45a9d0
mov ebx, dword [esp + 0x44]
sub ecx, edx
sar ecx, 1
cmp ebx, 1
jb 0x45aa27
cmp ecx, 1
jb 0x45aa27
cmp ebx, ecx
ja 0x45aa27
lea eax, [ebx + ebx]
push eax
mov eax, dword fs:[0x30]
push 8
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, eax
mov dword [esp + 0x54], ecx
test ecx, ecx
je 0x45aa2c
lea eax, [ebx - 1]
mov edx, ebx
push eax
mov eax, dword [esp + 0x30]
add eax, 2
push eax
call fcn.004166c4
mov edi, eax
jmp 0x45aa2c
mov edi, 0x80070057
mov eax, dword [esp + 0x54]
mov dword [esi], eax
jmp 0x45a968
xor ecx, ecx
inc ecx
mov dword [esp + 0x20], ecx
jmp 0x45a970
mov eax, dword [esp + 0x60]
test eax, eax
je 0x45aa5e
push eax
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 + 0x24]
mov ecx, dword [esp + 0x64]
call fcn.004588fe
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x24]
call fcn.004588fe
mov ebx, dword [esp + 0x10]
xor edx, edx
jmp 0x45aaa8
mov edx, dword [esp + 0x24]
xor eax, eax
xor edi, edi
mov dword [esp + 0x30], eax
xor ecx, ecx
inc edi
call fcn.004588fe
xor ecx, ecx
jmp 0x45aa6f
xor edi, edi
inc edi
xor edx, edx
mov dword [esp + 0x30], edx
jmp 0x45aaa8
mov edi, 0x80070057
mov ecx, dword [esp + 0x18]
test edi, edi
js 0x45ad02
cmp dword [esp + 0x30], 0
je 0x45ab47
cmp dword [esp + 0x1c], 0
mov eax, edx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x14], edx
jbe 0x45ab49
mov ecx, dword [esp + 0x1c]
xor esi, esi
mov edx, dword [esp + 0x28]
cmp dword [edx + eax*4], esi
jne 0x45ab34
mov eax, dword fs:[0x30]
mov edi, 0x8007000e
push 2
push 8
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
test ebx, ebx
je 0x45ab0f
push esi
xor edx, edx
mov ecx, ebx
push 0x406c74
inc edx
call fcn.004166c4
mov edi, eax
test edi, edi
js 0x45ab28
test ebx, ebx
je 0x45ab28
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 + 0x1c]
mov edx, dword [esp + 0x28]
inc eax
mov dword [esp + 0x14], eax
cmp eax, ecx
jb 0x45aada
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x4c]
jmp 0x45ab49
mov ecx, ebx
test edi, edi
js 0x45ad02
lea edx, [esp + 0x78]
call fcn.0045884c
mov edi, eax
test edi, edi
js 0x45ac7a
mov ebx, dword [esp + 0x6c]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x7c]
push eax
push ecx
push dword [ebx + 0x38]
call fcn.00460704
test eax, eax
js 0x45ac63
push dword [esp + 0x3c]
push esi
push dword [ebx + 0x38]
call fcn.0046099f
test eax, eax
js 0x45ac63
xor eax, eax
mov byte [esp + 0xf], al
cmp dword [esp + 0x30], eax
je 0x45ac6f
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x45ac71
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x68]
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 0x45ac18
mov eax, dword fs:[0x30]
mov edi, 0x8007000e
push 2
push 8
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
test ebx, ebx
je 0x45ac0b
xor eax, eax
xor edx, edx
push eax
push 0x406c74
inc edx
mov ecx, ebx
call fcn.004166c4
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 + 0x78]
call fcn.0045a0d0
cmp dword [esp + 0x48], 0
mov edi, eax
je 0x45ac47
test ebx, ebx
je 0x45ac47
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 0x45abc6
mov esi, dword [esp + 0x38]
jmp 0x45ac71
mov ecx, eax
mov byte [esp + 0xf], 1
call fcn.0045854f
mov edi, eax
lea ecx, [esp + 0x78]
call fcn.004588e8
mov eax, dword [esp + 0x18]
test eax, eax
je 0x45ac95
push eax
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 + 0x1c]
mov ecx, dword [esp + 0x68]
call fcn.004588fe
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
call fcn.004588fe
test edi, edi
js 0x45ad02
cmp dword [esp + 0x34], 0
je 0x45acd4
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.0045864c
mov edi, eax
cmp edi, 1
je 0x45ad18
test edi, edi
js 0x45ad02
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x3c]
mov al, byte [esp + 0xf]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x38], esi
jmp 0x45ad0c
mov ebx, dword [esp + 0x10]
mov al, 1
mov byte [esp + 0xf], al
test al, al
je 0x45a5fb
test edi, edi
js 0x45ad2f
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x3c]
mov dword [ecx], eax
xor eax, eax
jmp 0x45ad2d
mov ecx, eax
call fcn.0045854f
mov edi, eax
mov ecx, dword [esp + 0x84]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004729c0
mov esp, ebp
pop ebp
ret 0x14