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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441ab2
mov eax, dword fs:[0]
push eax
mov eax, 0x118c
call fcn.004306e0
mov eax, dword [0x452284]
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
push 0x104
lea eax, [ebp - 0x118]
push eax
mov esi, ecx
lea ecx, [ebp - 0x1198]
push 0
push ecx
mov eax, esi
mov dword [ebp - 0x112c], esi
mov edi, edx
call fcn.0041f580
add esp, 0x10
test eax, eax
jne 0x410a04
push esi
call fcn.0041fd30
add esp, 4
test eax, eax
jne 0x410a04
lea edx, [ebp - 0x1120]
push edx
mov ecx, edi
call fcn.00410cb0
mov dword [ebp - 4], 0
mov eax, dword [0x454b2c]
mov edx, dword [eax + 0xc]
mov ecx, 0x454b2c
call edx
add eax, 0x10
mov dword [ebp - 0x1124], eax
mov byte [ebp - 4], 1
test dword [ebp - 0x1190], 0x800
lea esi, [ebp - 0x118]
je 0x4106d7
lea eax, [ebp - 0x111c]
push eax
call fcn.00410c10
lea ecx, [ebp - 0x111c]
push ecx
lea edx, [ebp - 0x1128]
push edx
mov ebx, 0xfde9
mov byte [ebp - 4], 2
call fcn.00410420
add esp, 8
lea edi, [ebp - 0x1124]
mov byte [ebp - 4], 3
call fcn.00410db0
mov byte [ebp - 4], 2
jmp 0x410712
lea ecx, [ebp - 0x111c]
push ecx
call fcn.00410c10
lea edx, [ebp - 0x111c]
push edx
lea eax, [ebp - 0x1128]
push eax
xor ebx, ebx
mov byte [ebp - 4], 4
call fcn.00410420
add esp, 8
lea edi, [ebp - 0x1124]
mov byte [ebp - 4], 5
call fcn.00410db0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1128]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410734
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x111c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41075a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x1124]
cmp dword [ebx - 4], 1
mov ecx, dword [ebx - 0xc]
mov dword [ebp - 0x111c], ecx
jle 0x410784
mov edx, ecx
push edx
lea eax, [ebp - 0x1124]
push eax
call fcn.00410e20
mov ebx, dword [ebp - 0x1124]
xor edi, edi
cmp dword [ebp - 0x111c], edi
mov esi, ebx
jl 0x41083d
movzx eax, word [ebx + edi*2]
test ax, ax
je 0x41080e
cmp ax, 0x5c
je 0x4107a9
cmp ax, 0x2f
jne 0x410803
xor ecx, ecx
mov word [ebx + edi*2], cx
test esi, esi
jne 0x4107b7
xor eax, eax
jmp 0x4107cf
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4107c0
sub eax, edx
sar eax, 1
push eax
push esi
lea edx, [ebp - 0x1120]
push edx
call fcn.004111e0
push 1
push 0x445c54
lea eax, [ebp - 0x1120]
push eax
call fcn.004111e0
mov ecx, dword [ebp - 0x1120]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea esi, [ebx + edi*2 + 2]
inc edi
cmp edi, dword [ebp - 0x111c]
jle 0x410794
jmp 0x41083d
test esi, esi
jne 0x410816
xor eax, eax
jmp 0x41082f
mov eax, esi
lea edx, [eax + 2]
jmp 0x410820
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410820
sub eax, edx
sar eax, 1
push eax
push esi
lea edx, [ebp - 0x1120]
push edx
call fcn.004111e0
cmp word [esi], 0
jne 0x410893
add ebx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410863
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1120]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41088c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x410a06
mov ecx, dword [ebp - 0x1120]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4108df
add ebx, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4109db
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
jmp 0x4109db
mov eax, dword [ebp - 0x112c]
lea ecx, [ebp - 0x1118]
push ecx
call fcn.0041fef0
mov esi, eax
add esp, 4
test esi, esi
jl 0x4108b6
je 0x410952
push 0
lea edx, [ebp - 0x111c]
push edx
push esi
lea eax, [ebp - 0x1118]
push eax
push edi
mov dword [ebp - 0x111c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4109bb
cmp dword [ebp - 0x111c], esi
jne 0x4109bb
mov eax, dword [ebp - 0x112c]
lea ecx, [ebp - 0x1118]
push ecx
call fcn.0041fef0
mov esi, eax
add esp, 4
test esi, esi
jge 0x4108fa
jmp 0x4108b6
mov eax, dword [ebp - 0x1188]
lea ecx, [ebp - 0x113c]
push ecx
push eax
shr eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea edx, [ebp - 0x1134]
push edx
lea eax, [ebp - 0x113c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea ecx, [ebp - 0x1134]
push ecx
mov edx, ecx
push edx
mov eax, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410863
mov ecx, dword [eax]
push eax
jmp 0x41085c
add ebx, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4109db
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1120]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410a04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
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.00425608
mov esp, ebp
pop ebp
ret