Function at 0x1007f0d5
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x100a8ba4]
xor eax, esp
mov dword [esp + 0x220], eax
mov eax, dword [ebp + 0x1c]
and dword [esp + 4], 0
push ebx
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
mov esi, 0x10009818
mov dword [esp + 0x18], eax
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
push 0x1f4
xor esi, esi
lea eax, [esp + 0x38]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], esi
cmp dword [0x100a9468], esi
je 0x1007f328
test ebx, ebx
je 0x1007f328
or dword [ebx + 4], 0x90000
push 2
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x1007f18a
push 0x10009208
push 0x1000920c
push 1
push edi
call fcn.100769b2
add esp, 0x10
test eax, eax
jns 0x1007f186
xor eax, eax
mov word [edi], ax
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1007f1de
mov ecx, eax
call fcn.1007e526
test eax, eax
je 0x1007f1d6
mov esi, dword [0x100a9470]
lea ecx, [esp + 0x20]
push 0x104
push ecx
push eax
mov ecx, esi
call dword [0x100aa3f8]
call esi
lea eax, [esp + 0x20]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1007f1d6
add esi, 2
mov dword [esp + 0xc], esi
jmp 0x1007f1de
lea eax, [esp + 0x20]
mov dword [esp + 0xc], eax
mov ecx, dword [ebx]
mov esi, 0x65000000
cmp ecx, esi
je 0x1007f1ed
test ecx, ecx
jne 0x1007f223
mov edx, dword [0x100a9464]
mov eax, ecx
test edx, 0x80000
je 0x1007f211
xor eax, eax
cmp ecx, esi
sete al
dec eax
and eax, 0x97000000
add eax, 0x6b000000
mov dword [ebx], eax
mov ecx, eax
test edx, 0x40000
je 0x1007f223
mov dword [esp + 0x14], 1
cmp ecx, 0x2000000
je 0x1007f233
cmp ecx, 0x1000000
jne 0x1007f26e
call fcn.1003013d
test eax, eax
je 0x1007f26e
mov ecx, dword [ebx + 8]
mov edx, 0x1002816c
push 0x10009818
call fcn.1002ff54
mov esi, eax
push ecx
push dword [esp + 0x1c]
xor edx, edx
mov ecx, esi
call fcn.10030231
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [0x100a9468]
mov esi, dword [eax]
call fcn.1007df72
push ecx
push ecx
fstp qword [esp]
push dword [ebp + 0x28]
push 0
push dword [ebp + 0x20]
push dword [esp + 0x20]
push str._unknown_
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push dword [0x100a946c]
push dword [ebx + 8]
push dword [ebx + 4]
push 0x1002816c
push 0
push 0
call fcn.1007e7bb
push eax
call fcn.1007e760
mov ecx, dword [esi + 0x14]
push eax
push dword [ebx]
push 0x100281a0
push 0x11
push dword [0x100a9468]
call dword [0x100aa3f8]
call dword [esi + 0x14]
add esp, 0x54
mov esi, eax
test edi, edi
je 0x1007f2f0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, 4
jne 0x1007f302
call fcn.1007ee10
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [esp + 0x14], 0
je 0x1007f31a
push 0
push 0
push 1
push 0xc0000025
call dword [sym.imp.KERNEL32.dll_RaiseException]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
jmp 0x1007f32a
xor eax, eax
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1002c750
mov esp, ebp
pop ebp
ret 0x24