Function at 0x411270
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x97c
mov eax, dword [0x458504]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x720], ax
lea eax, [ebp - 0x71e]
push eax
mov dword [ebp - 0x97c], 0
call sub.MSVCR120.dll_memset
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x310], ax
lea eax, [ebp - 0x30e]
push eax
call sub.MSVCR120.dll_memset
add esp, 0x18
lea eax, [ebp - 0x310]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x310]
push 0x5c
push eax
call dword [sym.imp.MSVCR120.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x4112f9
xor ecx, ecx
mov word [eax], cx
push ebx
push esi
push 0xffffffffffffffff
push str.log_
lea eax, [ebp - 0x310]
push 0x105
push eax
call dword [sym.imp.MSVCR120.dll_wcsncat_s]
add esp, 0x10
lea eax, [ebp - 0x310]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
push 0xfe
push eax
mov word [ebp - 0x104], ax
lea eax, [ebp - 0x102]
push eax
call sub.MSVCR120.dll_memset
push 0
call dword [sym.imp.MSVCR120.dll__time64]
mov dword [ebp - 0x978], eax
lea eax, [ebp - 0x978]
push eax
mov dword [ebp - 0x974], edx
call dword [sym.imp.MSVCR120.dll__localtime64]
push eax
push str._Y__m__d
lea eax, [ebp - 0x104]
push 0x7f
push eax
call dword [sym.imp.MSVCR120.dll_wcsftime]
xor eax, eax
xor esi, esi
push 0x206
push eax
mov word [ebp - 0x518], ax
lea eax, [ebp - 0x516]
push eax
call sub.MSVCR120.dll_memset
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push esi
push ebx
push eax
lea eax, [ebp - 0x310]
push eax
push str._s_s_crash__u__u.
push 0xffffffffffffffff
lea eax, [ebp - 0x518]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll__snwprintf_s]
add esp, 0x50
mov dword [ebp - 0x970], esi
lea eax, [ebp - 0x96c]
push 0x24c
push esi
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x970]
push eax
lea eax, [ebp - 0x518]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x411489
jmp 0x411400
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
inc esi
push 0x206
push eax
mov word [ebp - 0x518], ax
lea eax, [ebp - 0x516]
push eax
call sub.MSVCR120.dll_memset
push esi
push ebx
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x310]
push eax
push str._s_s_crash__u__u.
push 0xffffffffffffffff
lea eax, [ebp - 0x518]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll__snwprintf_s]
push 0x24c
lea eax, [ebp - 0x96c]
mov dword [ebp - 0x970], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0x38
lea eax, [ebp - 0x970]
push eax
lea eax, [ebp - 0x518]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x411400
push esi
push ebx
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x310]
push eax
push str._s_s_crash__u__u
push 0xffffffffffffffff
lea eax, [ebp - 0x720]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll__snwprintf_s]
add esp, 0x20
mov dword [edi + 0x14], 7
xor eax, eax
mov dword [edi + 0x10], 0
mov word [edi], ax
pop esi
pop ebx
cmp word [ebp - 0x720], ax
je 0x4114ef
lea eax, [ebp - 0x720]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4114e0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x720]
mov ecx, edi
push eax
call fcn.00403350
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0043d084
mov esp, ebp
pop ebp
ret