Function at 0x461b90
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 [0x48ec38]
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.0046157f
test eax, eax
js 0x462382
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, 0x413e64
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.0043ac17
test eax, eax
je 0x461ca1
mov ecx, ebx
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x461c17
mov eax, dword [esp + 0x1c]
sub ecx, edx
sar ecx, 1
mov edi, 0x8007000e
lea ebx, [ecx - 3]
test eax, eax
je 0x46237b
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x5c]
jne 0x461c3f
sub ecx, edx
sar ecx, 1
cmp ebx, ecx
ja 0x46237b
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 0x461c8c
push ebx
push dword [esp + 0x20]
lea edx, [ebx + 1]
mov ecx, eax
call fcn.0043715c
mov edi, eax
mov eax, dword [esp + 0x3c]
test edi, edi
js 0x46238b
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x24], eax
jmp 0x462199
xor eax, eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x60], eax
test ebx, ebx
je 0x46237b
cmp ax, word [ebx]
je 0x46237b
mov edx, 0x413e60
mov ecx, ebx
call fcn.0043ac17
test eax, eax
je 0x462086
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 0x461d0c
push 0x5d
push eax
call sub.msvcrt.dll_wcschr
pop ecx
pop ecx
test eax, eax
je 0x461d03
inc edi
jmp 0x461cda
xor edi, edi
inc edi
mov dword [esp + 0x30], edi
jmp 0x461d0e
mov edi, ecx
push 0x5b
push ebx
call sub.msvcrt.dll_wcschr
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x46206b
test edi, edi
jne 0x46206b
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 0x461d3c
sub ecx, edx
sar ecx, 1
cmp ebx, ecx
ja 0x461d83
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 0x461d88
push ebx
push dword [esp + 0x20]
lea edx, [ebx + 1]
mov ecx, eax
call fcn.0043715c
mov edi, eax
jmp 0x461d88
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 0x461dae
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 0x461e11
mov edi, 0x8007000e
mov eax, dword [esp + 0x68]
test eax, eax
je 0x461dea
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.0045fa3a
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x34]
call fcn.0045fa3a
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x38]
jmp 0x46208d
test edi, edi
js 0x461dcf
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 0x461fba
cmp dword [esp + 0x64], eax
jae 0x461fba
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 0x46205f
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 0x461ffa
cmp ebx, dword [esp + 0x20]
jae 0x461ffa
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 0x461ea8
sub ecx, edx
sar ecx, 1
cmp ebx, 1
jb 0x461fed
cmp ecx, 1
jb 0x461fed
cmp ebx, ecx
ja 0x461fed
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 0x461f0b
lea eax, [ebx - 1]
mov edx, ebx
push eax
mov eax, dword [esp + 0x44]
add eax, 2
push eax
call fcn.0043715c
mov ecx, dword [esp + 0x2c]
mov edi, eax
mov dword [esi], ecx
test edi, edi
js 0x461f9f
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 0x461f28
sub ecx, ebx
mov ebx, dword [esp + 0x50]
sar ecx, 1
cmp ebx, edx
jb 0x461f87
cmp edx, ecx
ja 0x461f87
cmp ebx, ecx
ja 0x461f87
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 0x461f8c
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.0043715c
mov edi, eax
jmp 0x461f8c
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 0x461e29
mov eax, dword [esp + 0x34]
mov esi, dword [ebp + 0xc]
test edi, edi
js 0x461dcf
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 0x462095
mov edi, 0x80070057
mov eax, dword [esp + 0x2c]
mov dword [esi], eax
jmp 0x461f9f
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 0x462008
mov ebx, dword [esp + 0x50]
sub ecx, edx
sar ecx, 1
cmp ebx, 1
jb 0x461fed
cmp ecx, 1
jb 0x461fed
cmp ebx, ecx
ja 0x461fed
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 0x461ff2
lea ecx, [ebx - 1]
mov edx, ebx
push ecx
mov ecx, dword [esp + 0x44]
add ecx, 2
push ecx
mov ecx, eax
call fcn.0043715c
mov edi, eax
jmp 0x461ff2
xor ecx, ecx
inc ecx
mov dword [esp + 0x30], ecx
jmp 0x461fa7
mov edx, dword [esp + 0x34]
xor eax, eax
xor edi, edi
mov dword [esp + 0x38], eax
xor ecx, ecx
inc edi
call fcn.0045fa3a
xor ecx, ecx
jmp 0x461dfb
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 0x46238b
test edx, edx
je 0x462177
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 0x462199
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 0x46215d
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 0x462132
push esi
xor edx, edx
mov ecx, eax
push 0x406078
inc edx
call fcn.0043715c
mov ebx, eax
mov eax, dword [esp + 0x58]
mov ecx, ebx
mov edi, ebx
not ecx
test ecx, ecx
jns 0x462151
test eax, eax
je 0x462151
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 0x4620f7
mov esi, dword [ebp + 0xc]
test edi, edi
js 0x46238b
mov eax, dword [esp + 0x3c]
jmp 0x462199
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.0045f9c3
mov edi, eax
test edi, edi
js 0x4622c9
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.00466109
test eax, eax
js 0x4622b2
push dword [esp + 0x48]
mov eax, dword [esp + 0x70]
push esi
push dword [eax + 0x38]
call fcn.00466556
test eax, eax
js 0x4622b2
xor edx, edx
mov byte [esp + 0x13], dl
cmp dword [esp + 0x38], edx
je 0x4622ae
test ebx, ebx
je 0x4622c0
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x50], eax
sub esi, eax
mov dword [esp + 0x4c], ebx
jmp 0x462214
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 0x462264
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 0x462257
xor eax, eax
xor edx, edx
push eax
push 0x406078
inc edx
mov ecx, ebx
call fcn.0043715c
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.004615b4
cmp dword [esp + 0x54], 0
mov edi, eax
je 0x462293
test ebx, ebx
je 0x462293
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 0x462212
mov esi, dword [ebp + 0xc]
jmp 0x4622c0
mov edi, edx
jmp 0x4622c0
mov ecx, eax
mov byte [esp + 0x13], 1
call fcn.0045f703
mov edi, eax
lea ecx, [esp + 0x78]
call fcn.0045fa1e
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4622e4
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.0045fa3a
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
call fcn.0045fa3a
test edi, edi
js 0x46238b
cmp dword [esp + 0x44], 0
je 0x462327
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.0045f808
mov edi, eax
cmp edi, 1
je 0x46236d
test edi, edi
js 0x46234d
mov ebx, dword [esp + 0x44]
mov esi, dword [esp + 0x48]
mov al, byte [esp + 0x13]
jmp 0x462353
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 0x462369
xor eax, eax
jmp 0x461be8
test edi, edi
js 0x46238b
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x48]
mov dword [ecx], eax
xor eax, eax
jmp 0x462389
mov edi, 0x80070057
jmp 0x46238b
mov ecx, eax
call fcn.0045f703
mov edi, eax
mov ecx, dword [esp + 0x84]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047d650
mov esp, ebp
pop ebp
ret 0x14