Function at 0x1007d354
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x100a6b34]
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, 0x100078e8
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 fcn.1002e3fd
add esp, 0xc
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], esi
cmp dword [0x100a73e8], esi
je 0x1007d5a6
test ebx, ebx
je 0x1007d5a6
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 0x1007d409
push 0x100073ac
push 0x100073b0
push 1
push edi
call fcn.10074975
add esp, 0x10
test eax, eax
jns 0x1007d405
xor eax, eax
mov word [edi], ax
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1007d45d
mov ecx, eax
call fcn.1007c7a6
test eax, eax
je 0x1007d455
mov esi, dword [0x100a73f0]
lea ecx, [esp + 0x20]
push 0x104
push ecx
push eax
mov ecx, esi
call dword [0x100a83d4]
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 0x1007d455
add esi, 2
mov dword [esp + 0xc], esi
jmp 0x1007d45d
lea eax, [esp + 0x20]
mov dword [esp + 0xc], eax
mov ecx, dword [ebx]
mov esi, 0x65000000
cmp ecx, esi
je 0x1007d46c
test ecx, ecx
jne 0x1007d4a2
mov edx, dword [0x100a73e4]
mov eax, ecx
test edx, 0x80000
je 0x1007d490
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 0x1007d4a2
mov dword [esp + 0x14], 1
cmp ecx, 0x2000000
je 0x1007d4b2
cmp ecx, 0x1000000
jne 0x1007d4ec
call fcn.1002dbd2
test eax, eax
je 0x1007d4ec
mov ecx, dword [ebx + 8]
mov edx, 0x100276cc
push 0x100078e8
call fcn.1002da62
mov esi, eax
push dword [esp + 0x18]
xor edx, edx
mov ecx, esi
call fcn.1002dcc6
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [0x100a73e8]
mov esi, dword [eax]
call fcn.1007c1f2
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 [0x100a73ec]
push dword [ebx + 8]
push dword [ebx + 4]
push 0x100276cc
push 0
push 0
call fcn.1007ca3b
push eax
call fcn.1007c9e0
mov ecx, dword [esi + 0x14]
push eax
push dword [ebx]
push 0x10027700
push 0x11
push dword [0x100a73e8]
call dword [0x100a83d4]
call dword [esi + 0x14]
add esp, 0x54
mov esi, eax
test edi, edi
je 0x1007d56e
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, 4
jne 0x1007d580
call fcn.1007d090
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [esp + 0x14], 0
je 0x1007d598
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 0x1007d5a8
xor eax, eax
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1002bcc0
mov esp, ebp
pop ebp
ret 0x24