Function at 0x10003040
Capabilities:
Get process image filename
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c4
mov eax, dword [0x1001c018]
xor eax, esp
mov dword [esp + 0x2c0], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], esi
call fcn.1000a3b0
cmp dword [0x10126c08], 0
jne 0x100032b9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [sym.imp.MSVCR100.dll_rand]
mov dword [0x10126c08], eax
mov word [esp + 0x14], 0x5c1
call edi
and eax, 0x800000ff
jns 0x100030a5
dec eax
or eax, 0xffffff00
inc eax
cmp dword [0x1001c38c], 0xffffffff
mov bl, byte [ebp + 8]
mov byte [esp + 0x16], al
mov byte [esp + 0x17], 3
mov byte [esp + 0x18], bl
je 0x100030c7
cmp byte [0x1011c3c0], 0
jne 0x100030e5
lea esi, [esp + 0x14]
call fcn.10002ce0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c0]
xor ecx, esp
call fcn.10011ccc
mov esp, ebp
pop ebp
ret
mov word [esp + 0x20], 0x9bc1
call edi
and eax, 0x800000ff
jns 0x100030fc
dec eax
or eax, 0xffffff00
inc eax
mov byte [esp + 0x22], al
mov eax, dword [0x10126c10]
mov byte [esp + 0x23], 3
mov byte [esp + 0x24], bl
test eax, eax
jne 0x10003125
mov dword [esp + 0x25], eax
mov dword [esp + 0x29], eax
mov word [esp + 0x2d], ax
mov byte [esp + 0x2f], al
jmp 0x10003142
mov ecx, dword [eax]
mov dword [esp + 0x25], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x29], edx
mov cx, word [eax + 8]
mov word [esp + 0x2d], cx
mov dl, byte [eax + 0xa]
mov byte [esp + 0x2f], dl
mov eax, dword [0x10126c14]
test eax, eax
je 0x10003171
cmp dword [eax], 0
je 0x10003171
mov eax, dword [eax]
mov ecx, dword [eax]
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x34], edx
mov cx, word [eax + 8]
mov word [esp + 0x38], cx
mov dl, byte [eax + 0xa]
mov byte [esp + 0x3a], dl
jmp 0x10003184
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov word [esp + 0x38], ax
mov byte [esp + 0x3a], al
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x1000319e
push 0x40
push eax
lea eax, [esp + 0x43]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
jmp 0x100031af
mov ecx, 0x10
mov esi, eax
lea edi, [esp + 0x3b]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x40
push 0
test esi, esi
jne 0x100031cf
lea ecx, [esp + 0x83]
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
jmp 0x10003232
lea edx, [esp + 0x83]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
push esi
push 0
push 0x410
call ebx
mov edi, eax
test edi, edi
je 0x10003232
push 0x104
lea eax, [esp + 0xc4]
push eax
push edi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x1000322b
lea esi, [esp + 0xc0]
call fcn.1000d420
push eax
lea ecx, [esp + 0x7f]
push 0x10018874
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [esp + 0x1c]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x7b]
push edx
lea eax, [esp + 0x3f]
push eax
movzx eax, byte [esp + 0x2c]
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x31]
push edx
push eax
mov eax, 0x20
call fcn.1000e3c0
push eax
push 0
mov ecx, 0x1011c548
call fcn.10005790
movzx ecx, byte [esp + 0x3d]
add esp, 0x1c
lea edx, [esp + 0x20]
call fcn.10001920
test esi, esi
je 0x100032b9
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, esi
je 0x100032b9
push esi
push 0
push 0x1f0fff
call ebx
mov esi, eax
mov dword [esp + 0x10], 0
test esi, esi
je 0x100032b9
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x2cc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10011ccc
mov esp, ebp
pop ebp
ret