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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4351db
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x443284]
xor eax, esp
mov dword [esp + 0x448], eax
push ebx
push esi
push edi
mov eax, dword [0x443284]
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.00424a50
add esp, 0xc
push 0x206
lea ecx, [esp + 0x4a]
push ebx
push ecx
mov word [esp + 0x50], bx
call fcn.00424a50
add esp, 0xc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, 0x445e38
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 0x415890
sub eax, edx
sar eax, 1
push eax
push 0x445e38
lea esi, [esp + 0x30]
call fcn.00401d80
push 3
push 0x43be88
mov ecx, esi
mov dword [esp + 0x470], ebx
call fcn.00401cb0
mov eax, dword [esp + 0x2c]
mov esi, 8
cmp dword [esp + 0x40], esi
jae 0x4158d6
lea eax, [esp + 0x2c]
push ebx
push eax
call fcn.00420560
add esp, 8
cmp eax, 0xffffffff
jne 0x4158fb
cmp dword [esp + 0x40], esi
mov eax, dword [esp + 0x2c]
jae 0x4158f3
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.00424a50
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.0041f104
mov edi, eax
add esp, 8
add edi, 2
je 0x415a2d
push 0x2e
push edi
call fcn.0041f104
add esp, 8
cmp eax, ebx
je 0x415954
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 0x415960
sub eax, edx
sar eax, 1
push eax
push edi
mov esi, 0x446054
call fcn.00401d80
cmp dword [esp + 0x40], 8
mov ecx, dword [esp + 0x2c]
jae 0x41598a
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.00415c60
cmp dword [0x446050], ebx
je 0x4159ea
movzx eax, word [esp + 0x1a]
movzx ecx, word [esp + 0x16]
movzx edx, word [esp + 0x14]
push eax
push ecx
push edx
push edi
push 0x445e38
push str._sLog_s_Log_d_02d_02d.txt
push 0xffffffffffffffff
lea eax, [esp + 0x60]
push 0x104
push eax
call fcn.0041f84a
add esp, 0x24
jmp 0x415a2d
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 0x445e38
push str._sLog_s_Log_d_02d_02d_02d_02d_02d.txt
push 0xffffffffffffffff
lea ecx, [esp + 0x6c]
push 0x104
push ecx
call fcn.0041f84a
add esp, 0x30
mov eax, dword [0x445e30]
cmp eax, ebx
je 0x415a49
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x445e30], ebx
mov dword [0x446040], ebx
lea edx, [esp + 0x44]
push 0
push edx
xor bl, bl
call fcn.00420560
add esp, 8
cmp eax, 0xffffffff
jne 0x415a61
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 [0x445e30], eax
je 0x415a9b
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x446040], eax
mov eax, dword [0x445e30]
test bl, bl
je 0x415ac3
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 [0x445e30]
cmp dword [esp + 0x40], 8
mov esi, eax
jb 0x415ad9
mov eax, dword [esp + 0x2c]
push eax
call fcn.0041f829
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.0041f134
mov esp, ebp
pop ebp
ret