Function at 0x1002c92
Capabilities:
Accept command line arguments
Create process memory minidump
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x1005028]
push edi
xor edi, edi
push 0x1005220
mov dword [ebp - 4], eax
mov dword [ebp - 0x248], edi
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x260], 8
mov dword [ebp - 0x25c], 0x8000
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x10023ea
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x244], eax
call fcn.010023c2
test eax, eax
jl 0x1002f63
push edi
call fcn.01003ae5
lea eax, [ebp - 0x260]
push eax
call dword [0x1001dc8]
test eax, eax
je 0x1002f5e
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x248]
push dword [ebp - 0x244]
call fcn.010022f8
test eax, eax
jl 0x1002f5e
cmp dword [ebp - 0x234], edi
je 0x1002f5e
push ebx
push edi
push edi
push edi
push 6
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
cmp ebx, edi
je 0x1002f5d
cmp dword [ebx + 0x10], edi
je 0x1002f2d
cmp dword [ebx], edi
je 0x1002f2d
mov eax, dword [ebx + 0x14]
cmp eax, edi
je 0x1002f2d
mov dword [0x1005444], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.01002224
test eax, eax
jl 0x1002f2d
push esi
push edi
push 0x4000080
push 2
push edi
push 5
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
or esi, 0xffffffff
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x24c], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x238], eax
je 0x1002f1b
xor eax, eax
lea edi, [ebp - 0x254]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x258], eax
mov eax, dword [ebx + 0xc]
xor edi, edi
push edi
push edi
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x258]
push eax
push edi
push dword [ebp - 0x238]
mov dword [ebp - 0x250], 1
push dword [ebx + 4]
push dword [ebx]
call sub.DBGHELP.dll_MiniDumpWriteDump
test eax, eax
je 0x1002e4c
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x238]
call fcn.01002355
mov esi, eax
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
je 0x1002f19
mov eax, dword [ebp - 0x234]
lea esi, [esi + esi*4]
shl esi, 2
lea eax, [esi + eax + 0x10]
push eax
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x22c], edi
call fcn.01002422
lea eax, [ebx + 0x18]
push eax
lea ecx, [ebp - 0x22c]
call fcn.01001e25
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x234]
add esi, eax
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x220], ecx
mov ecx, dword [esi + 8]
xor esi, esi
cmp dword [ebp - 0x230], esi
mov dword [ebp - 0x224], ecx
je 0x1002f0e
cmp dword [ebp - 0x22c], esi
je 0x1002f0e
push dword [ebx + 0x10]
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x234], esi
call fcn.01002bd9
mov ecx, dword [ebp - 0x23c]
cmp ecx, esi
je 0x1002f0e
push 3
call fcn.010027e1
lea ecx, [ebp - 0x230]
call fcn.01002405
xor edi, edi
mov ecx, dword [ebp - 0x234]
cmp ecx, edi
pop esi
je 0x1002f2d
push 3
call fcn.010027e1
mov eax, dword [ebx + 0x14]
cmp eax, edi
je 0x1002f3b
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebx + 0x10]
cmp eax, edi
je 0x1002f49
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
cmp eax, edi
je 0x1002f56
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop ebx
call fcn.01003afd
push dword [ebp - 0x244]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [0x1005444]
cmp eax, edi
je 0x1002f85
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1005444], edi
push 0x1005220
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
call fcn.01003269
leave
ret 0x10