Function at 0x1003b9c
Capabilities:
Create process memory minidump

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x348
mov eax, dword [0x1006004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
xor edi, edi
push esi
mov dword [ebp - 0x2d4], 0x80004005
mov dword [ebp - 0x2dc], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x42c], eax
mov eax, dword [esi + 0x43c]
mov dword [ebp - 0x2d8], eax
cmp eax, edi
jne 0x1003c28
lea eax, [ebp - 0x2d8]
push eax
mov ecx, esi
call fcn.01003b59
cmp eax, edi
mov dword [ebp - 0x2d4], eax
jge 0x1003c28
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003f38
test byte [eax + 0x1c], 1
je 0x1003f38
push dword [ebp - 0x2d4]
push 0x10013ec
push 0x2a
jmp 0x1003c7c
push dword [ebp - 0x2d8]
push edi
push 0x48
call dword [sym.imp.KERNEL32.dll_OpenThread]
cmp eax, edi
jne 0x1003c8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1003c4f
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x2d4], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003f38
test byte [eax + 0x1c], 1
je 0x1003f38
push dword [ebp - 0x2d4]
push 0x10013ec
push 0x2b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001bcb
jmp 0x1003f38
push ebx
lea ebx, [esi + 0x448]
push ebx
push eax
mov dword [ebx], 0x1003f
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x1003ceb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1003cb9
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x2d4], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003f37
test byte [eax + 0x1c], 1
je 0x1003f37
push dword [ebp - 0x2d4]
push 0x10013ec
push 0x2c
jmp 0x1003e43
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x348], eax
mov eax, dword [esi + 0x500]
mov dword [ebp - 0x340], edi
mov edi, 0x2cc
push edi
mov dword [ebp - 0x33c], eax
lea eax, [ebp - 0x2d0]
push 0
push eax
mov dword [ebp - 0x344], 1
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
lea eax, [ebp - 0x2d0]
push eax
push ebx
mov dword [ebp - 0x2d0], 0x1003f
call dword [sym.imp.ntdll.dll_RtlCompareMemory]
cmp eax, edi
jne 0x1003d81
push 0
push 0x780a
call sub.ntdll.dll_ShipAssert
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003f37
test byte [eax + 0x1c], 1
je 0x1003f37
push 0x10013ec
push 0x2d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001ba5
jmp 0x1003f37
xor edi, edi
push 0x3c
lea eax, [ebp - 0x334]
push edi
push eax
mov dword [ebp - 0x338], edi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x348]
mov dword [ebp - 0x2e4], eax
mov eax, dword [ebp - 0x2d8]
push 2
mov dword [ebp - 0x2f8], eax
lea eax, [ebp - 0x2e4]
push edi
mov dword [ebp - 0x2f4], eax
push edi
lea eax, [ebp - 0x2dc]
mov dword [ebp - 0x2e0], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
mov dword [ebp - 0x2f0], edi
mov dword [ebp - 0x2ec], 0x1003b3d
mov dword [ebp - 0x2e8], esi
call ebx
push eax
push dword [esi + 0x430]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x1003e53
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1003e16
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x2d4], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003f37
test byte [eax + 0x1c], 1
je 0x1003f37
push dword [ebp - 0x2d4]
push 0x10013ec
push 0x2e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001bcb
jmp 0x1003f37
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov edi, 0x7fffffff
mov dword [ebp - 0x2d8], eax
cmp eax, edi
je 0x1003e83
push 0xffffffffffffffff
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea eax, [ebp - 0x2ec]
push eax
push 0
lea eax, [ebp - 0x2f8]
push eax
push dword [ebp + 8]
push dword [esi + 0x42c]
push dword [esi + 0x438]
push dword [ebp - 0x2dc]
call sub.dbghelp.dll_MiniDumpWriteDump
mov dword [ebp - 0x2d4], eax
cmp dword [ebp - 0x2d8], edi
je 0x1003eca
push dword [ebp - 0x2d8]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp - 0x2d4], 0
jne 0x1003f30
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1003eee
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x2d4], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003f1e
test byte [eax + 0x1c], 1
je 0x1003f1e
push dword [ebp - 0x2d4]
push 0x10013ec
push 0x2f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001bcb
push dword [ebp - 0x2d4]
push 0x7802
call sub.ntdll.dll_ShipAssert
jmp 0x1003f37
and dword [ebp - 0x2d4], 0
pop ebx
or dword [esi + 0x42c], 0xffffffff
cmp dword [ebp - 0x2dc], 0
je 0x1003f5b
push dword [ebp - 0x2dc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x2dc], 0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2d4]
pop edi
xor ecx, ebp
pop esi
call fcn.01002d9e
leave
ret 0xc