Function at 0x460de0
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 [0x48dc38]
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 + 0x20], ebx
mov dword [esp + 0x74], eax
call fcn.004607cf
test eax, eax
js 0x4615d2
xor eax, eax
mov dword [esp + 0x5c], eax
mov byte [esp + 0x13], al
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov edx, 0x413d34
mov dword [esp + 0x38], eax
mov ecx, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
call fcn.00439e67
test eax, eax
je 0x460ef1
mov ecx, ebx
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x460e67
mov eax, dword [esp + 0x1c]
sub ecx, edx
sar ecx, 1
mov edi, 0x8007000e
lea ebx, [ecx - 3]
test eax, eax
je 0x4615cb
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x5c]
jne 0x460e8f
sub ecx, edx
sar ecx, 1
cmp ebx, ecx
ja 0x4615cb
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 + 0x3c], eax
test eax, eax
je 0x460edc
push ebx
push dword [esp + 0x20]
lea edx, [ebx + 1]
mov ecx, eax
call fcn.0043647c
mov edi, eax
mov eax, dword [esp + 0x3c]
test edi, edi
js 0x4615db
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x24], eax
jmp 0x4613e9
xor eax, eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x60], eax
test ebx, ebx
je 0x4615cb
cmp ax, word [ebx]
je 0x4615cb
mov edx, 0x413d30
mov ecx, ebx
call fcn.00439e67
test eax, eax
je 0x4612d6
xor eax, eax
mov edi, eax
mov eax, ebx
push 0x5b
push eax
mov dword [esp + 0x3c], edi
call sub.msvcrt.dll_wcschr
pop ecx
pop ecx
xor ecx, ecx
mov dword [esp + 0x30], ecx
test eax, eax
je 0x460f5c
push 0x5d
push eax
call sub.msvcrt.dll_wcschr
pop ecx
pop ecx
test eax, eax
je 0x460f53
inc edi
jmp 0x460f2a
xor edi, edi
inc edi
mov dword [esp + 0x30], edi
jmp 0x460f5e
mov edi, ecx
push 0x5b
push ebx
call sub.msvcrt.dll_wcschr
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x4612bb
test edi, edi
jne 0x4612bb
mov ecx, dword [esp + 0x1c]
mov edi, 0x8007000e
sub ebx, dword [esp + 0x1c]
sar ebx, 1
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x5c]
jne 0x460f8c
sub ecx, edx
sar ecx, 1
cmp ebx, ecx
ja 0x460fd3
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 + 0x68], eax
test eax, eax
je 0x460fd8
push ebx
push dword [esp + 0x20]
lea edx, [ebx + 1]
mov ecx, eax
call fcn.0043647c
mov edi, eax
jmp 0x460fd8
mov edi, 0x80070057
mov ebx, dword [esp + 0x34]
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 + 0x3c], eax
test eax, eax
jne 0x460ffe
mov edi, 0x8007000e
mov eax, dword fs:[0x30]
push ebx
push 8
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edx, eax
mov dword [esp + 0x54], edx
test edx, edx
jne 0x461061
mov edi, 0x8007000e
mov eax, dword [esp + 0x68]
test eax, eax
je 0x46103a
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 + 0x34]
mov ecx, dword [esp + 0x3c]
call fcn.0045ec8a
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x34]
call fcn.0045ec8a
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x38]
jmp 0x4612dd
test edi, edi
js 0x46101f
mov esi, dword [esp + 0x3c]
xor eax, eax
sub edx, esi
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x4c], edx
push 0x5b
push eax
call sub.msvcrt.dll_wcschr
mov ebx, eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x48], ebx
pop ecx
pop ecx
test ebx, ebx
je 0x46120a
cmp dword [esp + 0x64], eax
jae 0x46120a
mov eax, dword [esp + 0x4c]
xor ecx, ecx
push 0x5d
mov dword [esi], ecx
push ebx
mov dword [eax + esi], ecx
call sub.msvcrt.dll_wcschr
mov dword [esp + 0x28], eax
pop ecx
pop ecx
test eax, eax
je 0x4612af
sub eax, ebx
sar eax, 1
push 0x3d
push ebx
mov dword [esp + 0x58], eax
call sub.msvcrt.dll_wcschr
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x46124a
cmp ebx, dword [esp + 0x20]
jae 0x46124a
mov ecx, dword [esp + 0x40]
mov edi, 0x8007000e
sub ebx, dword [esp + 0x40]
sar ebx, 1
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x5c]
jne 0x4610f8
sub ecx, edx
sar ecx, 1
cmp ebx, 1
jb 0x46123d
cmp ecx, 1
jb 0x46123d
cmp ebx, ecx
ja 0x46123d
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 + 0x2c], ecx
test ecx, ecx
je 0x46115b
lea eax, [ebx - 1]
mov edx, ebx
push eax
mov eax, dword [esp + 0x44]
add eax, 2
push eax
call fcn.0043647c
mov ecx, dword [esp + 0x2c]
mov edi, eax
mov dword [esi], ecx
test edi, edi
js 0x4611ef
mov ecx, dword [esp + 0x40]
lea edx, [ebx + 1]
mov dword [esp + 0x58], edx
mov edi, 0x8007000e
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x5c]
jne 0x461178
sub ecx, ebx
mov ebx, dword [esp + 0x50]
sar ecx, 1
cmp ebx, edx
jb 0x4611d7
cmp edx, ecx
ja 0x4611d7
cmp ebx, ecx
ja 0x4611d7
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 + 0x60], eax
test eax, eax
je 0x4611dc
mov eax, dword [esp + 0x40]
lea edx, [ebx + 1]
mov ecx, dword [esp + 0x58]
push ebx
lea ecx, [eax + ecx*2]
push ecx
mov ecx, dword [esp + 0x68]
call fcn.0043647c
mov edi, eax
jmp 0x4611dc
mov edi, 0x80070057
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x60]
mov dword [eax + esi], ecx
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
inc dword [esp + 0x64]
add esi, 4
test ecx, ecx
je 0x461079
mov eax, dword [esp + 0x34]
mov esi, dword [ebp + 0xc]
test edi, edi
js 0x46101f
mov ebx, dword [esp + 0x3c]
xor ecx, ecx
mov dword [esp + 0x28], ebx
mov edi, ecx
mov ebx, dword [esp + 0x54]
xor edx, edx
mov ecx, dword [esp + 0x68]
inc edx
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x24], ecx
jmp 0x4612e5
mov edi, 0x80070057
mov eax, dword [esp + 0x2c]
mov dword [esi], eax
jmp 0x4611ef
mov ecx, dword [esp + 0x40]
mov edi, 0x8007000e
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x461258
mov ebx, dword [esp + 0x50]
sub ecx, edx
sar ecx, 1
cmp ebx, 1
jb 0x46123d
cmp ecx, 1
jb 0x46123d
cmp ebx, ecx
ja 0x46123d
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 + 0x2c], eax
test eax, eax
je 0x461242
lea ecx, [ebx - 1]
mov edx, ebx
push ecx
mov ecx, dword [esp + 0x44]
add ecx, 2
push ecx
mov ecx, eax
call fcn.0043647c
mov edi, eax
jmp 0x461242
xor ecx, ecx
inc ecx
mov dword [esp + 0x30], ecx
jmp 0x4611f7
mov edx, dword [esp + 0x34]
xor eax, eax
xor edi, edi
mov dword [esp + 0x38], eax
xor ecx, ecx
inc edi
call fcn.0045ec8a
xor ecx, ecx
jmp 0x46104b
xor edi, edi
inc edi
xor eax, eax
mov edx, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], edx
test edi, edi
js 0x4615db
test edx, edx
je 0x4613c7
mov ebx, dword [esp + 0x14]
mov eax, ecx
xor ecx, ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], ecx
test ebx, ebx
je 0x4613e9
mov eax, dword [esp + 0x28]
xor esi, esi
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ebx
cmp dword [eax + ecx*4], esi
jne 0x4613ad
mov eax, dword fs:[0x30]
mov ebx, 0x8007000e
push 2
push 8
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esp + 0x58], eax
test eax, eax
je 0x461382
push esi
xor edx, edx
mov ecx, eax
push 0x406078
inc edx
call fcn.0043647c
mov ebx, eax
mov eax, dword [esp + 0x58]
mov ecx, ebx
mov edi, ebx
not ecx
test ecx, ecx
jns 0x4613a1
test eax, eax
je 0x4613a1
push eax
mov eax, dword fs:[0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x20], ecx
cmp ecx, ebx
jb 0x461347
mov esi, dword [ebp + 0xc]
test edi, edi
js 0x4615db
mov eax, dword [esp + 0x3c]
jmp 0x4613e9
mov dword [esp + 0x24], ecx
mov eax, ebx
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x38], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ebx
lea edx, [esp + 0x78]
mov ecx, eax
call fcn.0045ec13
mov edi, eax
test edi, edi
js 0x461519
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x7c]
push eax
mov eax, dword [esp + 0x74]
push ecx
push dword [eax + 0x38]
call fcn.00465358
test eax, eax
js 0x461502
push dword [esp + 0x48]
mov eax, dword [esp + 0x70]
push esi
push dword [eax + 0x38]
call fcn.004657a5
test eax, eax
js 0x461502
xor edx, edx
mov byte [esp + 0x13], dl
cmp dword [esp + 0x38], edx
je 0x4614fe
test ebx, ebx
je 0x461510
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x50], eax
sub esi, eax
mov dword [esp + 0x4c], ebx
jmp 0x461464
xor edx, edx
mov ebx, dword [eax]
mov ecx, dword [esi + eax]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x54], edx
test ebx, ebx
jne 0x4614b4
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 0x4614a7
xor eax, eax
xor edx, edx
push eax
push 0x406078
inc edx
mov ecx, ebx
call fcn.0043647c
mov edi, eax
mov ecx, dword [esp + 0x58]
not edi
shr edi, 0x1f
mov dword [esp + 0x54], edi
push ebx
push ecx
push dword [esp + 0x50]
mov ecx, dword [esp + 0x78]
call fcn.00460804
cmp dword [esp + 0x54], 0
mov edi, eax
je 0x4614e3
test ebx, ebx
je 0x4614e3
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 + 0x50]
add eax, 4
sub dword [esp + 0x4c], 1
mov dword [esp + 0x50], eax
jne 0x461462
mov esi, dword [ebp + 0xc]
jmp 0x461510
mov edi, edx
jmp 0x461510
mov ecx, eax
mov byte [esp + 0x13], 1
call fcn.0045e953
mov edi, eax
lea ecx, [esp + 0x78]
call fcn.0045ec6e
mov eax, dword [esp + 0x24]
test eax, eax
je 0x461534
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 + 0x14]
mov ecx, dword [esp + 0x28]
call fcn.0045ec8a
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
call fcn.0045ec8a
test edi, edi
js 0x4615db
cmp dword [esp + 0x44], 0
je 0x461577
push dword [esp + 0x44]
mov eax, dword fs:[0x30]
xor ebx, ebx
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov dword [esp + 0x44], ebx
lea edx, [esp + 0x44]
lea ecx, [esp + 0x74]
call fcn.0045ea58
mov edi, eax
cmp edi, 1
je 0x4615bd
test edi, edi
js 0x46159d
mov ebx, dword [esp + 0x44]
mov esi, dword [esp + 0x48]
mov al, byte [esp + 0x13]
jmp 0x4615a3
mov ebx, dword [esp + 0x1c]
mov al, 1
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x13], al
mov dword [ebp + 0xc], esi
test al, al
jne 0x4615b9
xor eax, eax
jmp 0x460e38
test edi, edi
js 0x4615db
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x48]
mov dword [ecx], eax
xor eax, eax
jmp 0x4615d9
mov edi, 0x80070057
jmp 0x4615db
mov ecx, eax
call fcn.0045e953
mov edi, eax
mov ecx, dword [esp + 0x84]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047c8b0
mov esp, ebp
pop ebp
ret 0x14