Function at 0x404680
Capabilities:
Create process memory minidump

Disassembly:
sub esp, 0x850
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x848], eax
push ebx
push esi
push edi
push 1
push 0x4015a0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [0x419860], 4
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov eax, dword [0x419ec8]
mov dword [esp + 0x1c], 0x404c00
mov dword [esp + 0x20], 0x419860
test eax, eax
je 0x40470c
mov ecx, dword [0x419ecc]
test ecx, ecx
je 0x40470c
mov dword [esp + 0x40], eax
mov eax, dword [0x419f10]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], eax
lea ecx, [esp + 0x44]
lea eax, [esp + 0x3c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0
jmp 0x404714
mov dword [esp + 0x18], 0
mov eax, dword [0x419edc]
mov dword [esp + 0x2c], eax
mov eax, dword [0x419ed8]
mov edi, 2
mov dword [esp + 0x24], 0xb
mov dword [esp + 0x30], 0xb
mov dword [esp + 0x38], eax
lea edx, [esp + 0x28]
mov ebx, edi
mov eax, dword [edx + 4]
test eax, eax
je 0x404780
mov ecx, 0x1000
xor esi, esi
nop
cmp word [eax], si
je 0x404764
add eax, 2
dec ecx
jne 0x404750
mov esi, 0x80070057
xor eax, eax
jmp 0x404778
test ecx, ecx
jne 0x404771
mov esi, 0x80070057
xor eax, eax
jmp 0x404778
mov eax, 0x1000
sub eax, ecx
test esi, esi
js 0x404785
add eax, eax
jmp 0x404787
mov esi, 0x80070057
xor eax, eax
test esi, esi
js 0x404796
test eax, eax
je 0x404796
add eax, 2
mov dword [edx], eax
jmp 0x40479d
dec edi
mov dword [edx], 0
add edx, 0xc
dec ebx
jne 0x404741
mov dword [esp + 0x10], edi
dec edi
je 0x4047af
dec edi
jne 0x4047c2
jmp 0x4047ba
cmp dword [esp + 0x28], 0
lea eax, [esp + 0x30]
je 0x4047be
lea eax, [esp + 0x24]
mov dword [esp + 0x14], eax
mov esi, dword [0x419eb4]
call fcn.00407a40
mov eax, dword [0x419eb8]
test eax, eax
je 0x4047d8
mov esi, eax
mov eax, dword [0x41a9bc]
test eax, 0x9000
jne 0x4047f8
cmp dword [0x419ef0], 0
je 0x4047f1
test al, 0x20
je 0x4047f8
xor edi, edi
call fcn.00407b40
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x20]
push esi
push dword [0x419eac]
push dword [0x419ef4]
push dword [0x419864]
call dword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
test eax, eax
je 0x404877
push 0x419a96
push str.MiniDump_completed:__ls
push 2
mov ebx, 0x415428
mov dword [0x419860], 5
call fcn.00401660
mov eax, dword [0x420830]
add esp, 0xc
test eax, eax
je 0x404861
shr eax, 1
push eax
push str.Number_of_pages_filtered_out:__d
push 2
call fcn.00401660
add esp, 0xc
mov ecx, 0x40fc24
call fcn.00409a30
mov ecx, str.sqldumper.exe
call fcn.00409a30
jmp 0x4048d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0x400
mov esi, eax
lea eax, [esp + 0x58]
push eax
push 0x400
push esi
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov ebx, 0x415428
test eax, eax
je 0x4048be
lea eax, [esp + 0x50]
push eax
push esi
push str.MiniDumpWriteDump____Failed_0x_x____ls
push 1
call fcn.00401660
add esp, 0x10
jmp 0x4048ce
push esi
push str.MiniDumpWriteDump____Failed_Error_Code_0x_x
push 1
call fcn.00401660
add esp, 0xc
or dword [0x415054], 0x20000010
call fcn.00407ad0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov ecx, dword [esp + 0x854]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040bb9d
add esp, 0x850
ret