Function at 0x415e50
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x427ceb
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x434284]
xor eax, esp
mov dword [esp + 0x448], eax
push ebx
push esi
push edi
mov eax, dword [0x434284]
xor eax, esp
push eax
lea eax, [esp + 0x460]
mov dword fs:[0], eax
xor ebx, ebx
push 0x206
lea eax, [esp + 0x252]
push ebx
push eax
mov word [esp + 0x258], bx
call fcn.0041b5e0
add esp, 0xc
push 0x206
lea ecx, [esp + 0x4a]
push ebx
push ecx
mov word [esp + 0x50], bx
call fcn.0041b5e0
add esp, 0xc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, 0x436de0
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], bx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x415ef0
sub eax, edx
sar eax, 1
push eax
push 0x436de0
lea esi, [esp + 0x30]
call fcn.00404580
push 3
push 0x430080
mov ecx, esi
mov dword [esp + 0x470], ebx
call fcn.004044b0
mov eax, dword [esp + 0x2c]
mov esi, 8
cmp dword [esp + 0x40], esi
jae 0x415f36
lea eax, [esp + 0x2c]
push ebx
push eax
call fcn.00416c86
add esp, 8
cmp eax, 0xffffffff
jne 0x415f5b
cmp dword [esp + 0x40], esi
mov eax, dword [esp + 0x2c]
jae 0x415f53
lea eax, [esp + 0x2c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x208
lea eax, [esp + 0x250]
push ebx
push eax
call fcn.0041b5e0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x250]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x24c]
push 0x5c
push edx
call fcn.004170b8
mov edi, eax
add esp, 8
add edi, 2
je 0x41608d
push 0x2e
push edi
call fcn.004170b8
add esp, 8
cmp eax, ebx
je 0x415fb4
mov word [eax], bx
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x415fc0
sub eax, edx
sar eax, 1
push eax
push edi
mov esi, 0x436ffc
call fcn.00404580
cmp dword [esp + 0x40], 8
mov ecx, dword [esp + 0x2c]
jae 0x415fea
lea ecx, [esp + 0x2c]
mov edx, dword [esp + 0x14]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x28]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 0xc], edx
call fcn.004162c0
cmp dword [0x436ff8], ebx
je 0x41604a
movzx eax, word [esp + 0x1a]
movzx ecx, word [esp + 0x16]
movzx edx, word [esp + 0x14]
push eax
push ecx
push edx
push edi
push 0x436de0
push str._sLog_s_Log_d_02d_02d.txt
push 0xffffffffffffffff
lea eax, [esp + 0x60]
push 0x104
push eax
call fcn.00416b5f
add esp, 0x24
jmp 0x41608d
movzx ecx, word [esp + 0x20]
movzx edx, word [esp + 0x1e]
movzx eax, word [esp + 0x1c]
push ecx
movzx ecx, word [esp + 0x1e]
push edx
movzx edx, word [esp + 0x1e]
push eax
movzx eax, word [esp + 0x20]
push ecx
push edx
push eax
push edi
push 0x436de0
push str._sLog_s_Log_d_02d_02d_02d_02d_02d.txt
push 0xffffffffffffffff
lea ecx, [esp + 0x6c]
push 0x104
push ecx
call fcn.00416b5f
add esp, 0x30
mov eax, dword [0x436dd8]
cmp eax, ebx
je 0x4160a9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x436dd8], ebx
mov dword [0x436fe8], ebx
lea edx, [esp + 0x44]
push 0
push edx
xor bl, bl
call fcn.00416c86
add esp, 8
cmp eax, 0xffffffff
jne 0x4160c1
mov bl, 1
push 0
push 0x20
push 4
push 0
push 1
push 0xc0000000
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
mov dword [0x436dd8], eax
je 0x4160fb
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x436fe8], eax
mov eax, dword [0x436dd8]
test bl, bl
je 0x416123
push 0
lea ecx, [esp + 0x28]
push ecx
push 2
lea edx, [esp + 0x1c]
push edx
push eax
mov byte [esp + 0x24], 0xff
mov byte [esp + 0x25], 0xfe
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [0x436dd8]
cmp dword [esp + 0x40], 8
mov esi, eax
jb 0x416139
mov eax, dword [esp + 0x2c]
push eax
call fcn.00416abb
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x460]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x448]
xor ecx, esp
call fcn.004170e8
mov esp, ebp
pop ebp
ret