Function at 0x43caf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x678
push esi
push edi
lea edi, [ebp - 0x678]
mov ecx, 0x19e
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x50b7a4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x50d928], 0
jne 0x43cb29
xor eax, eax
jmp 0x43ce2a
cmp dword [0x50d928], 1
jne 0x43cb3b
mov dword [ebp - 8], 2
jmp 0x43cb4b
cmp dword [0x50d928], 2
jb 0x43cb4b
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov esi, esp
push str.DBGHELP.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp esi, esp
call fcn.00452f80
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x43cb76
xor eax, eax
jmp 0x43ce2a
mov esi, esp
push str.MiniDumpWriteDump
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.00452f80
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x43cb9e
xor eax, eax
jmp 0x43ce2a
xor ecx, ecx
mov word [ebp - 0x21c], cx
push 0x206
push 0
lea edx, [ebp - 0x21a]
push edx
call fcn.00452f00
add esp, 0xc
mov esi, esp
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
cmp esi, esp
call fcn.00452f80
movzx ecx, word [ebp - 0x228]
push ecx
movzx edx, word [ebp - 0x22a]
push edx
movzx eax, word [ebp - 0x22c]
push eax
movzx ecx, word [ebp - 0x22e]
push ecx
movzx edx, word [ebp - 0x232]
push edx
movzx eax, word [ebp - 0x234]
push eax
push 0x50d930
push str._s_u__u__u__u__u__u.dmp
push 0x208
lea ecx, [ebp - 0x21c]
push ecx
call fcn.00401e15
add esp, 0x28
mov esi, esp
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp esi, esp
call fcn.00452f80
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0xffffffff
jne 0x43cc5f
xor eax, eax
jmp 0x43ce2a
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, esp
call fcn.00452f80
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x244], 0
mov esi, esp
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, esp
call fcn.00452f80
mov esi, esp
push 0
push 0
lea ecx, [ebp - 0x24c]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x23c]
push eax
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, esp
call fcn.00452f80
push eax
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp edi, esp
call fcn.00452f80
push eax
call dword [ebp - 0x10]
cmp esi, esp
call fcn.00452f80
mov dword [ebp - 0x254], eax
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.00452f80
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x254], 0
jne 0x43ce02
mov byte [ebp - 0x65c], 0
push 0x3ff
push 0
lea ecx, [ebp - 0x65b]
push ecx
call fcn.00452f00
add esp, 0xc
mov edx, dword [ebp - 0x258]
push edx
push str.MinidumpWriteDump___FAILED__LastError:_u__n
push 0x400
lea eax, [ebp - 0x65c]
push eax
call fcn.0040167c
add esp, 0x10
mov dword [ebp - 0x668], 0
mov esi, esp
push 0
lea ecx, [ebp - 0x668]
push ecx
lea edx, [ebp - 0x65c]
push edx
call fcn.00453810
add esp, 4
push eax
lea eax, [ebp - 0x65c]
push eax
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, esp
call fcn.00452f80
mov dword [ebp - 0x674], 0
mov esi, esp
push 0
push 0
lea edx, [ebp - 0x674]
push edx
push 0x400
mov eax, dword [ebp - 0x258]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
cmp esi, esp
call fcn.00452f80
mov esi, esp
push 0
lea ecx, [ebp - 0x668]
push ecx
mov edx, dword [ebp - 0x674]
push edx
call fcn.00453810
add esp, 4
push eax
mov eax, dword [ebp - 0x674]
push eax
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, esp
call fcn.00452f80
mov esi, esp
mov edx, dword [ebp - 0x674]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, esp
call fcn.00452f80
mov esi, esp
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00452f80
cmp dword [ebp - 0x254], 0
jne 0x43ce25
xor eax, eax
jmp 0x43ce2a
mov eax, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x43ce58]
call fcn.00452fb0
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453800
add esp, 0x678
cmp ebp, esp
call fcn.00452f80
mov esp, ebp
pop ebp
ret