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

Disassembly:
push 0xffffffffffffffff
push 0x10179059
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x101ce2ac]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101ce2ac]
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
mov cl, cl
test eax, 0x60ca
mov dword [esp + 0x34], ebp
mov ah, ah
push ecx
pop ecx
cmp dword [edi + 0x32bc], ebp
jne 0x100495c0
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x100495bc
push 0xffffffffffffff9c
push edi
call fcn.10067360
add esp, 8
mov ch, ch
lea eax, [esp + 0x54]
push eax
mov ecx, esi
call fcn.1000cf10
jmp 0x10049982
mov eax, dword [esp + 0x3c]
cmp dword [edi + 0x32bc], 0
je 0x100495d4
or eax, 0x80000000
mov dword [esp + 0x3c], eax
push edx
pop edx
mov ah, ah
test ebx, ebx
jne 0x100496ea
mov ecx, dword [esp + 0x40]
push ecx
push eax
call fcn.10050800
add esp, 8
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edx
push ebx
pop ebx
or eax, edx
jne 0x1004960c
push 0xffffffffffffff9b
push edi
call fcn.10067360
add esp, 8
test ecx, ecx
jmp 0x10049976
mov eax, dword [esp + 0x3c]
push eax
call fcn.1004b470
add esp, 4
mov ebx, eax
push edx
pop edx
push 0
push 0
push ebx
push 0
push 0x400
call fcn.100696f0
add esp, 0x14
mov dword [esp + 0x48], eax
mov eax, eax
test eax, eax
jne 0x10049652
push 0xffffffffffffff9b
push edi
call fcn.10067360
add esp, 8
test bl, bl
lea ecx, [esp + 0x54]
push ecx
jmp 0x1004997b
mov al, al
mov cl, cl
push ebx
call fcn.1006de90
add esp, 4
mov byte [esp + 0x44], al
test bl, bl
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.1004ba70
movzx edx, al
add esp, 0x24
mov dword [esp + 0x44], edx
mov al, al
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
cmp ebx, eax
je 0x100496bc
mov eax, dword [esp + 0x48]
push eax
call fcn.1004c710
add esp, 4
mov ch, ch
cmp dword [esp + 0x44], 0
jne 0x100496da
push 0xffffffffffffff9b
push edi
call fcn.10067360
add esp, 8
mov al, al
lea ecx, [esp + 0x54]
push ecx
jmp 0x1004997b
mov ebx, dword [esp + 0x20]
sub ebx, dword [esp + 0x4c]
add ebx, dword [esp + 0x28]
test ebx, ebx
test ebx, ebx
jg 0x100496fe
push 0xffffffffffffff9b
push edi
call fcn.10067360
add esp, 8
test cl, cl
jmp 0x10049976
mov eax, dword [esp + 0x90]
test eax, eax
je 0x100497bf
cmp eax, 2
je 0x100497bf
cmp eax, 1
jne 0x10049846
lea eax, [ebx + 0xa]
push eax
mov dword [esp + 0x18], eax
call fcn.1011671b
add esp, 4
mov ebp, eax
push ebx
pop ebx
mov eax, dword [esp + 0x14]
push eax
call fcn.1011671b
add esp, 4
mov dword [esp + 0x34], eax
test dl, dl
test ebp, ebp
je 0x1004979b
test eax, eax
je 0x10049789
mov word [eax], 0
mov bh, bh
mov byte [ebp], 0
test eax, 0x785e
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
push ebx
push eax
push ecx
call fcn.10047c30
add esp, 0xc
push edx
pop edx
mov eax, dword [esp + 0x34]
mov byte [ebx + eax], 0
test al, al
mov byte [ebx + eax + 1], 0
mov bh, bh
jmp 0x1004981d
push ebp
call fcn.101167de
add esp, 4
test eax, 0xad2
mov eax, dword [esp + 0x34]
test eax, eax
je 0x100497aa
push eax
call fcn.101167de
add esp, 4
test cl, cl
push 0xffffffffffffff9b
push edi
call fcn.10067360
add esp, 8
test eax, 0x596f
jmp 0x10049976
lea eax, [ebx + 0xa]
push eax
mov dword [esp + 0x18], eax
call fcn.1011671b
add esp, 4
mov ebp, eax
test ah, ah
test ebp, ebp
jne 0x100497ee
push 0xffffffffffffff9b
push edi
call fcn.10067360
add esp, 8
test bl, bl
lea eax, [esp + 0x54]
push eax
jmp 0x1004997b
mov byte [ebp], 0
test bl, bl
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
push ebx
push ebp
push ecx
call fcn.10047c30
add esp, 0xc
push ecx
pop ecx
mov byte [ebx + ebp], 0
test ah, ah
cmp dword [esp + 0x90], 1
jne 0x1004983b
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 ecx, ecx
jmp 0x10049945
mov eax, dword [esp + 0x90]
mov esi, dword [esp + 0x38]
cmp eax, 2
jne 0x10049949
push 0
push 0
push 0xffffffffffffffff
push ebp
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov edi, eax
test 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.10105690
add esp, 4
mov esi, eax
mov cl, cl
test esi, esi
jne 0x100498a6
push ebp
call fcn.101167de
add esp, 4
mov dl, dl
mov esi, dword [esp + 0x38]
lea eax, [esp + 0x54]
push eax
jmp 0x1004997b
push ebx
push 0
push esi
call fcn.10117df0
add esp, 0xc
test ch, ch
push edi
push esi
push 0xffffffffffffffff
push ebp
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov edx, edx
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
mov dl, dl
push ebx
call fcn.1011671b
add esp, 4
mov edi, eax
test ebx, ebx
test edi, edi
jne 0x10049913
push esi
call fcn.1010568b
add esp, 4
mov ebx, ebx
push ebp
call fcn.101167de
add esp, 4
push edx
pop edx
mov esi, dword [esp + 0x38]
lea ecx, [esp + 0x54]
push ecx
jmp 0x1004997b
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
test bh, bh
push esi
call fcn.1010568b
add esp, 4
test ah, ah
push ebp
call fcn.101167de
add esp, 4
test eax, 0x36f1
mov ebp, edi
mov al, al
mov esi, dword [esp + 0x38]
push ebp
lea ecx, [esp + 0x58]
call fcn.100113d0
test eax, eax
test ebp, ebp
je 0x10049964
push ebp
call fcn.101167de
add esp, 4
mov dh, dh
mov eax, dword [esp + 0x34]
test eax, eax
je 0x10049976
push eax
call fcn.101167de
add esp, 4
nop
lea edx, [esp + 0x54]
push edx
mov ecx, esi
call fcn.1000cf10
mov dword [esp + 0x30], 1
mov byte [esp + 0x78], 0
lea ecx, [esp + 0x54]
call fcn.10006e00
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.10116cb9
add esp, 0x68
ret