Function at 0x10016280
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10080868
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push esi
push edi
mov eax, dword [0x100a6250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0
je 0x100165db
call fcn.1002c590
mov esi, eax
mov dword [ebp - 0x30], esi
mov eax, dword [ebx + 4]
push eax
mov dword [ebp - 4], 0
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor edx, edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], edx
test eax, eax
je 0x100165ad
mov eax, dword [ebx + 4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edi, eax
mov dword [ebp - 0x14], edi
call fcn.1002c620
mov ecx, dword [edi]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
push edi
call dword [ecx]
mov ebx, dword [eax]
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xb4], eax
test ebx, ebx
jne 0x10016328
xor eax, eax
mov dword [ebp - 0xb4], eax
jmp 0x10016407
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016330
sub ecx, edx
sar ecx, 1
push 0x80
lea eax, [ecx + 1]
lea edi, [eax*4]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xb4]
push edi
push eax
call fcn.10006a30
add esp, 0x10
push 0
push 0
push edi
push dword [ebp - 0xb4]
mov edi, dword [ebp - 0x10]
push edi
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x100163f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100163f6
mov ebx, dword [ebp - 0x20]
push 0
push 0
push 0
push 0
push edi
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
lea eax, [ebp - 0xb0]
push 0x80
push eax
lea eax, [ebp - 0xb4]
push edi
push eax
call fcn.10006a30
add esp, 0x10
push 0
push 0
push edi
push dword [ebp - 0xb4]
push dword [ebp - 0x10]
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
test ebx, ebx
jne 0x100165f1
mov eax, dword [ebp - 0xb4]
mov edi, dword [ebp - 0x14]
push eax
call fcn.1002c650
push eax
push 0x10088cd0
push dword [ebp - 0x18]
call fcn.1002c510
mov eax, dword [ebp - 0xb4]
lea ecx, [ebp - 0xb0]
add esp, 0x10
cmp eax, ecx
je 0x10016437
push eax
call fcn.100492e8
add esp, 4
push dword [ebp - 0x24]
mov byte [ebp - 4], 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [edi]
lea ecx, [ebp - 0x28]
push ecx
push edi
call dword [eax + 4]
mov ebx, dword [eax]
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xb4], eax
test ebx, ebx
jne 0x10016474
xor eax, eax
mov dword [ebp - 0xb4], eax
jmp 0x10016552
mov eax, ebx
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10016480
sub eax, edx
sar eax, 1
inc eax
mov dword [ebp - 0x10], eax
push 0x80
lea edi, [eax*4]
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xb4]
push edi
push eax
call fcn.10006a30
add esp, 0x10
push 0
push 0
push edi
push dword [ebp - 0xb4]
mov edi, dword [ebp - 0x10]
push edi
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x10016544
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10016544
mov ebx, dword [ebp - 0x14]
push 0
push 0
push 0
push 0
push edi
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
lea eax, [ebp - 0xb0]
push 0x80
push eax
lea eax, [ebp - 0xb4]
push edi
push eax
call fcn.10006a30
add esp, 0x10
push 0
push 0
push edi
push dword [ebp - 0xb4]
push dword [ebp - 0x10]
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
test ebx, ebx
jne 0x100165f1
mov eax, dword [ebp - 0xb4]
push eax
call fcn.1002c650
mov ebx, dword [ebp - 0x18]
push eax
push 0x10088cd4
push ebx
call fcn.1002c510
mov eax, dword [ebp - 0xb4]
lea ecx, [ebp - 0xb0]
add esp, 0x10
cmp eax, ecx
je 0x10016583
push eax
call fcn.100492e8
add esp, 4
push dword [ebp - 0x28]
mov byte [ebp - 4], 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ebx
push esi
call fcn.1002c4e0
mov edx, dword [ebp - 0x1c]
add esp, 8
mov ebx, dword [ebp + 8]
inc edx
mov dword [ebp - 0x1c], edx
cmp edx, dword [ebp - 0x2c]
jne 0x100162e2
push esi
call fcn.1002c8a0
add esp, 4
mov edi, eax
test esi, esi
je 0x100165c5
push esi
call fcn.1002c6d0
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80
lea eax, [ebp - 0xb0]
push eax
push dword [ebp - 0xb4]
call fcn.10006b30
add esp, 0xc
call fcn.10006e70
int3