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

Disassembly:
push 0xffffffffffffffff
push 0x101790b9
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x101ce2ac]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101ce2ac]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x74]
mov eax, dword [esp + 0x7c]
mov esi, dword [esp + 0x78]
mov edi, dword [esp + 0x8c]
lea ecx, [esp + 0x48]
xor ebp, ebp
mov dword [esp + 0x30], ebp
mov edx, ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x6c], 1
mov ecx, dword [esp + 0x58]
mov byte [ecx], 0
mov dword [esp + 0x6c], 2
test edi, edi
push eax
pop eax
mov dword [esp + 0x38], ebp
nop
mov ebp, ebp
cmp dword [esi + 0x32bc], ebp
jne 0x10049a78
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x10049a74
push 0xffffffffffffff9c
push esi
call fcn.10067360
add esp, 8
mov bl, bl
lea edx, [esp + 0x48]
push edx
mov ecx, ebx
call fcn.1000cf10
jmp 0x10049e3c
mov eax, dword [esp + 0x3c]
cmp dword [esi + 0x32bc], 0
je 0x10049a8c
or eax, 0x80000000
mov dword [esp + 0x3c], eax
push edx
pop edx
test edi, edi
test edi, edi
jne 0x10049b97
test ch, ch
mov ecx, dword [esp + 0x80]
or ecx, dword [esp + 0x84]
jne 0x10049abf
push 0xffffffffffffff9b
push esi
call fcn.10067360
add esp, 8
test bl, bl
lea edx, [esp + 0x48]
push edx
jmp 0x10049e35
push eax
call fcn.1004b470
add esp, 4
mov edi, eax
mov ebx, ebx
push 0
push 0
push edi
push 0
push 0x400
call fcn.100696f0
add esp, 0x14
mov dword [esp + 0x40], eax
mov edx, edx
test eax, eax
jne 0x10049afc
push 0xffffffffffffff9b
push esi
call fcn.10067360
add esp, 8
test bh, bh
jmp 0x10049e30
mov dh, dh
nop
push edi
call fcn.1006de90
add esp, 4
mov byte [esp + 0x34], al
test bl, bl
mov ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x94]
lea edx, [esp + 0x38]
push edx
mov edx, dword [esp + 0x94]
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x58]
push ecx
push edx
push eax
call fcn.1004ba70
movzx ecx, al
add esp, 0x24
mov dword [esp + 0x34], ecx
mov edx, edx
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
cmp edi, eax
je 0x10049b6b
mov edx, dword [esp + 0x40]
push edx
call fcn.1004c710
add esp, 4
mov dl, dl
cmp dword [esp + 0x34], 0
jne 0x10049b84
push 0xffffffffffffff9b
push esi
call fcn.10067360
add esp, 8
test edx, edx
jmp 0x10049e30
mov edi, dword [esp + 0x28]
sub edi, dword [esp + 0x80]
add edi, dword [esp + 0x20]
mov edx, edx
test edi, edi
jg 0x10049bb0
push 0xffffffffffffff9b
push esi
call fcn.10067360
add esp, 8
mov dl, dl
lea ecx, [esp + 0x48]
push ecx
jmp 0x10049e35
mov eax, dword [esp + 0x88]
test eax, eax
je 0x10049c7b
cmp eax, 2
je 0x10049c7b
cmp eax, 1
jne 0x10049d07
lea eax, [edi + 0xa]
push eax
mov dword [esp + 0x18], eax
call fcn.1011671b
add esp, 4
mov ebp, eax
mov al, al
mov edx, dword [esp + 0x14]
push edx
call fcn.1011671b
add esp, 4
mov dword [esp + 0x38], eax
mov edi, edi
test ebp, ebp
je 0x10049c52
test eax, eax
je 0x10049c43
mov word [eax], 0
mov edx, edx
mov byte [ebp], 0
test ebx, ebx
mov ecx, dword [esp + 0x80]
push eax
mov eax, dword [esp + 0x88]
push eax
push ecx
push esi
mov esi, dword [esp + 0x4c]
call fcn.100460d0
add esp, 0x10
test ah, ah
mov eax, dword [esp + 0x38]
mov byte [edi + eax], 0
mov dh, dh
mov byte [edi + eax + 1], 0
test edi, edi
jmp 0x10049ce2
push ebp
call fcn.101167de
add esp, 4
mov bh, bh
mov eax, dword [esp + 0x38]
test eax, eax
je 0x10049c61
push eax
call fcn.101167de
add esp, 4
test edi, edi
push 0xffffffffffffff9b
push esi
call fcn.10067360
add esp, 8
test eax, 0x2f11
lea edx, [esp + 0x48]
push edx
jmp 0x10049e35
lea eax, [edi + 0xa]
push eax
mov dword [esp + 0x18], eax
call fcn.1011671b
add esp, 4
mov ebp, eax
test ebx, ebx
test ebp, ebp
jne 0x10049ca8
push 0xffffffffffffff9b
push esi
call fcn.10067360
add esp, 8
test eax, 0x7986
jmp 0x10049e30
mov byte [ebp], 0
mov esi, esi
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
push ebp
push ecx
push edx
push esi
mov esi, dword [esp + 0x4c]
call fcn.100460d0
add esp, 0x10
xchg ebx, eax
xchg ebx, eax
mov byte [edi + ebp], 0
mov dl, dl
cmp dword [esp + 0x88], 1
jne 0x10049d00
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
push 0
push 0
push ecx
push ebp
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
mov edx, edx
jmp 0x10049e02
mov eax, dword [esp + 0x88]
cmp eax, 2
jne 0x10049e02
push 0
push 0
push 0xffffffffffffffff
push ebp
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov edi, eax
mov bl, bl
xor ecx, ecx
lea esi, [edi + edi]
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10105690
add esp, 4
mov esi, eax
test bl, bl
test esi, esi
jne 0x10049d5e
push ebp
call fcn.101167de
add esp, 4
test dl, dl
jmp 0x10049e30
lea eax, [edi + edi]
push eax
push 0
push esi
call fcn.10117df0
add esp, 0xc
mov eax, eax
push edi
push esi
push 0xffffffffffffffff
push ebp
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov al, al
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
mov dword [esp + 0x34], eax
test dh, dh
push eax
call fcn.1011671b
add esp, 4
mov edi, eax
push edx
pop edx
test edi, edi
jne 0x10049dcc
push esi
call fcn.1010568b
add esp, 4
test al, al
push ebp
call fcn.101167de
add esp, 4
mov edi, edi
lea ecx, [esp + 0x48]
push ecx
jmp 0x10049e35
mov edx, dword [esp + 0x34]
push 0
push 0
push edx
push edi
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
push eax
pop eax
push esi
call fcn.1010568b
add esp, 4
test eax, 0x2a6f
push ebp
call fcn.101167de
add esp, 4
push ebx
pop ebx
mov ebp, edi
mov dl, dl
push ebp
lea ecx, [esp + 0x4c]
call fcn.100113d0
test edx, edx
test ebp, ebp
je 0x10049e1d
push ebp
call fcn.101167de
add esp, 4
mov dl, dl
mov eax, dword [esp + 0x38]
test eax, eax
je 0x10049e30
push eax
call fcn.101167de
add esp, 4
mov edx, edx
lea eax, [esp + 0x48]
push eax
mov ecx, ebx
call fcn.1000cf10
mov dword [esp + 0x30], 1
mov byte [esp + 0x6c], 0
lea ecx, [esp + 0x48]
call fcn.10006e00
mov eax, ebx
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.10116cb9
add esp, 0x5c
ret