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

Disassembly:
push 0xffffffffffffffff
push 0x1015d9a9
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x101af0fc]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101af0fc]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x8c]
mov esi, dword [esp + 0x80]
mov eax, dword [esp + 0x88]
mov edi, dword [esp + 0x84]
mov ebx, dword [esp + 0x94]
lea edx, [esp + 0x54]
mov dword [esp + 0x40], ecx
xor ebp, ebp
mov dword [esp + 0x30], ebp
mov ecx, edx
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x78], 1
mov edx, dword [esp + 0x64]
mov byte [edx], 0
mov dword [esp + 0x78], 2
test eax, 0x32a6
mov cl, cl
mov dword [esp + 0x34], ebp
push edx
pop edx
test eax, 0x400d
cmp dword [edi + 0x32b8], ebp
jne 0x10045543
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x1004553f
push 0xffffffffffffff9c
push edi
call fcn.10062c00
add esp, 8
push eax
pop eax
lea eax, [esp + 0x54]
push eax
mov ecx, esi
call fcn.1000cef0
jmp 0x100458fe
mov eax, dword [esp + 0x3c]
cmp dword [edi + 0x32b8], 0
je 0x10045557
or eax, 0x80000000
mov dword [esp + 0x3c], eax
mov edi, edi
nop
test ebx, ebx
jne 0x1004566f
mov ecx, dword [esp + 0x40]
push ecx
push eax
call fcn.1004c710
add esp, 8
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edx
test ch, ch
or eax, edx
jne 0x1004558e
push 0xffffffffffffff9b
push edi
call fcn.10062c00
add esp, 8
push ecx
pop ecx
jmp 0x100458f2
mov eax, dword [esp + 0x3c]
push eax
call fcn.10047400
add esp, 4
mov ebx, eax
mov al, al
push 0
push 0
push ebx
push 0
push 0x400
call fcn.100648d0
add esp, 0x14
mov dword [esp + 0x48], eax
test ah, ah
test eax, eax
jne 0x100455d4
push 0xffffffffffffff9b
push edi
call fcn.10062c00
add esp, 8
test edi, edi
lea ecx, [esp + 0x54]
push ecx
jmp 0x100458f7
push edx
pop edx
test dl, dl
push ebx
call fcn.10068fc0
add esp, 4
mov byte [esp + 0x44], al
test eax, 0x7a20
mov edx, dword [esp + 0x44]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x60]
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x60]
push edx
push eax
push ecx
call fcn.10047a00
movzx edx, al
add esp, 0x24
mov dword [esp + 0x44], edx
test eax, eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
cmp ebx, eax
je 0x10045641
mov eax, dword [esp + 0x48]
push eax
call fcn.100486c0
add esp, 4
mov dl, dl
cmp dword [esp + 0x44], 0
jne 0x1004565f
push 0xffffffffffffff9b
push edi
call fcn.10062c00
add esp, 8
mov ecx, ecx
lea ecx, [esp + 0x54]
push ecx
jmp 0x100458f7
mov ebx, dword [esp + 0x20]
sub ebx, dword [esp + 0x4c]
add ebx, dword [esp + 0x28]
mov dl, dl
test ebx, ebx
jg 0x10045683
push 0xffffffffffffff9b
push edi
call fcn.10062c00
add esp, 8
mov edi, edi
jmp 0x100458f2
mov eax, dword [esp + 0x90]
test eax, eax
je 0x1004573b
cmp eax, 2
je 0x1004573b
cmp eax, 1
jne 0x100457c2
lea eax, [ebx + 0xa]
push eax
mov dword [esp + 0x18], eax
call fcn.1010136f
add esp, 4
mov ebp, eax
mov ch, ch
mov eax, dword [esp + 0x14]
push eax
call fcn.1010136f
add esp, 4
mov dword [esp + 0x34], eax
test eax, eax
test ebp, ebp
je 0x1004571a
test eax, eax
je 0x1004570b
mov word [eax], 0
mov ecx, ecx
mov byte [ebp], 0
test al, al
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
push ebx
push eax
push ecx
call fcn.10043ba0
add esp, 0xc
xchg ebx, eax
xchg ebx, eax
mov eax, dword [esp + 0x34]
mov byte [ebx + eax], 0
test ebx, ebx
mov byte [ebx + eax + 1], 0
test eax, eax
jmp 0x10045799
push ebp
call fcn.10101432
add esp, 4
mov al, al
mov eax, dword [esp + 0x34]
test eax, eax
je 0x10045729
push eax
call fcn.10101432
add esp, 4
mov dh, dh
push 0xffffffffffffff9b
push edi
call fcn.10062c00
add esp, 8
mov cl, cl
jmp 0x100458f2
lea eax, [ebx + 0xa]
push eax
mov dword [esp + 0x18], eax
call fcn.1010136f
add esp, 4
mov ebp, eax
push eax
pop eax
test ebp, ebp
jne 0x1004576a
push 0xffffffffffffff9b
push edi
call fcn.10062c00
add esp, 8
push ecx
pop ecx
lea eax, [esp + 0x54]
push eax
jmp 0x100458f7
mov byte [ebp], 0
mov ebp, ebp
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
push ebx
push ebp
push ecx
call fcn.10043ba0
add esp, 0xc
test eax, eax
mov byte [ebx + ebp], 0
mov dl, dl
cmp dword [esp + 0x90], 1
jne 0x100457b7
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
push 0
push 0
push edx
push ebp
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
test edx, edx
jmp 0x100458c0
mov eax, dword [esp + 0x90]
mov esi, dword [esp + 0x38]
cmp eax, 2
jne 0x100458c4
push 0
push 0
push 0xffffffffffffffff
push ebp
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov edi, eax
mov bh, bh
xor ecx, ecx
lea ebx, [edi + edi]
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100f356b
add esp, 4
mov esi, eax
nop
test esi, esi
jne 0x10045821
push ebp
call fcn.10101432
add esp, 4
mov ebp, ebp
mov esi, dword [esp + 0x38]
lea eax, [esp + 0x54]
push eax
jmp 0x100458f7
push ebx
push 0
push esi
call fcn.10102a00
add esp, 0xc
test esi, esi
push edi
push esi
push 0xffffffffffffffff
push ebp
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
test eax, 0x75f3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
mov ebx, eax
push ebx
pop ebx
push ebx
call fcn.1010136f
add esp, 4
mov edi, eax
test eax, eax
test edi, edi
jne 0x10045891
push esi
call fcn.100f3570
add esp, 4
mov edi, edi
push ebp
call fcn.10101432
add esp, 4
push ebx
pop ebx
mov esi, dword [esp + 0x38]
lea ecx, [esp + 0x54]
push ecx
jmp 0x100458f7
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
mov ebp, ebp
push esi
call fcn.100f3570
add esp, 4
mov dl, dl
push ebp
call fcn.10101432
add esp, 4
mov edx, edx
mov ebp, edi
mov edi, edi
mov esi, dword [esp + 0x38]
push ebp
lea ecx, [esp + 0x58]
call fcn.10011380
test dl, dl
test ebp, ebp
je 0x100458df
push ebp
call fcn.10101432
add esp, 4
test bl, bl
mov eax, dword [esp + 0x34]
test eax, eax
je 0x100458f2
push eax
call fcn.10101432
add esp, 4
test dl, dl
lea edx, [esp + 0x54]
push edx
mov ecx, esi
call fcn.1000cef0
mov dword [esp + 0x30], 1
mov byte [esp + 0x78], 0
lea ecx, [esp + 0x54]
call fcn.10006e20
mov eax, esi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.1010190d
add esp, 0x68
ret