Function at 0x414090
Capabilities:
Check if file exists
Create process memory minidump
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d76d
mov eax, dword fs:[0]
push eax
sub esp, 0x4ec
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4a0], edx
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x4f4], 0
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x103
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [ebp - 0x46c], 7
mov dword [ebp - 0x470], 0
mov word [ebp - 0x480], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x454], 7
mov dword [ebp - 0x458], eax
mov word [ebp - 0x468], ax
lea eax, [ebp - 0x468]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x480]
lea ecx, [ebp - 0x420]
call fcn.00405be0
xor eax, eax
mov dword [ebp - 0x4ac], 7
add esp, 4
mov dword [ebp - 0x4b0], 0
mov word [ebp - 0x4c0], ax
cmp word [ebp - 0x420], ax
jne 0x414182
xor ecx, ecx
jmp 0x41419f
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
jmp 0x414190
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414190
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x4c0]
call fcn.0040235a
lea edx, [ebp - 0x4c0]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x450]
call fcn.00406170
mov byte [ebp - 4], 4
cmp dword [ebp - 0x4ac], 8
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x4141e5
push dword [ebp - 0x4c0]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x4ac], 7
push eax
push 0x48b308
lea ecx, [ebp - 0x4f0]
mov dword [ebp - 0x4b0], 0
mov word [ebp - 0x4c0], ax
mov dword [ebp - 0x4dc], 7
mov dword [ebp - 0x4e0], eax
mov word [ebp - 0x4f0], ax
call fcn.0040235a
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4d8]
push 1
xor eax, eax
mov dword [ebp - 0x4c4], 7
push 0x48b7f8
mov dword [ebp - 0x4c8], 0
mov word [ebp - 0x4d8], ax
call fcn.0040235a
lea eax, [ebp - 0x4f0]
mov byte [ebp - 4], 6
push eax
lea edx, [ebp - 0x4d8]
lea ecx, [ebp - 0x480]
call fcn.0040c600
add esp, 4
cmp dword [ebp - 0x4c4], 8
jb 0x414290
push dword [ebp - 0x4d8]
call edi
add esp, 4
xor eax, eax
mov byte [ebp - 4], 4
cmp dword [ebp - 0x4dc], 8
mov dword [ebp - 0x4c4], 7
mov dword [ebp - 0x4c8], 0
mov word [ebp - 0x4d8], ax
jb 0x4142c5
push dword [ebp - 0x4f0]
call edi
add esp, 4
lea eax, [ebp - 0x490]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x4f0]
call fcn.004125a0
cmp dword [ebp - 0x46c], 8
mov esi, eax
lea eax, [ebp - 0x480]
cmovae eax, dword [ebp - 0x480]
cmp dword [ebp - 0x43c], 8
mov dword [ebp - 0x4a4], eax
lea eax, [ebp - 0x450]
cmovae eax, dword [ebp - 0x450]
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x4a8], eax
jb 0x414339
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push dword [ebp - 0x4a4]
movzx eax, word [ebp - 0x484]
push eax
movzx eax, word [ebp - 0x486]
push eax
movzx eax, word [ebp - 0x488]
push eax
push dword [ebp - 0x4a8]
lea eax, [ebp - 0x218]
push esi
push str._s_s__02d_02d_02d__s__ld__ld.dmp
push 0xffffffffffffffff
push eax
call fcn.004026c5
add esp, 0x2c
cmp dword [ebp - 0x4dc], 8
jb 0x414396
push dword [ebp - 0x4f0]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
cmp word [ebp - 0x218], ax
jne 0x4143c0
xor ecx, ecx
jmp 0x4143df
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4143d0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x438]
call fcn.0040235a
mov byte [ebp - 4], 7
lea eax, [ebp - 0x438]
cmp dword [ebp - 0x424], 8
cmovae eax, dword [ebp - 0x438]
push eax
push str.GenerateDump_fileName:_s
push 0
push str.Light_pub.cpp
call fcn.00404060
add esp, 0x10
lea eax, [ebp - 0x218]
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
mov dword [ebp - 0x49c], eax
mov eax, dword [ebp - 0x4a0]
push 0
mov dword [ebp - 0x498], eax
lea eax, [ebp - 0x49c]
push eax
push 1
push esi
mov dword [ebp - 0x494], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
test eax, eax
je 0x4144e9
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4144e9
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
cmp word [ebp - 0x218], ax
jne 0x4144bf
xor ecx, ecx
lea eax, [ebp - 0x218]
push ecx
push eax
jmp 0x414502
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
jmp 0x4144d0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4144d0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
jmp 0x414502
xor eax, eax
mov dword [ebx + 0x14], 7
push eax
mov dword [ebx + 0x10], 0
mov word [ebx], ax
push 0x48b308
mov ecx, ebx
call fcn.0040235a
cmp dword [ebp - 0x424], 8
jb 0x41451d
push dword [ebp - 0x438]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x424], 7
cmp dword [ebp - 0x43c], 8
mov word [ebp - 0x438], ax
mov dword [ebp - 0x428], eax
jb 0x41454a
push dword [ebp - 0x450]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x43c], 7
cmp dword [ebp - 0x454], 8
mov word [ebp - 0x450], ax
mov dword [ebp - 0x440], eax
jb 0x414577
push dword [ebp - 0x468]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x454], 7
cmp dword [ebp - 0x46c], 8
mov word [ebp - 0x468], ax
mov dword [ebp - 0x458], eax
jb 0x4145a4
push dword [ebp - 0x480]
call edi
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00452da4
mov esp, ebp
pop ebp
ret