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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41436b
mov eax, dword fs:[0]
push eax
mov eax, 0x4360
call fcn.00412230
mov eax, dword [0x41908c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0x4018
mov esi, ecx
mov dword [ebp - 0x428c], eax
xor eax, eax
lea ecx, [ebp - 0x4238]
push ebx
push ecx
mov dword [ebp - 0x427c], ebx
mov dword [ebp - 0x4278], eax
mov dword [ebp - 0x4274], eax
mov dword [ebp - 0x423c], ebx
call fcn.0040e0c0
add esp, 0xc
push 0x4c
lea edx, [ebp - 0x42e0]
push ebx
push edx
mov dword [ebp - 0x42e4], ebx
call fcn.0040e0c0
add esp, 0xc
push 3
push esi
lea ecx, [ebp - 0x4368]
lea eax, [ebp - 0x4364]
mov dword [ebp - 0x4240], ebx
mov dword [ebp - 0x4280], ebx
push ecx
mov dword [ebp - 0x424c], ebx
mov dword [ebp - 0x4270], ebx
mov dword [ebp - 0x4290], 0xffffffff
mov dword [ebp - 0x4258], ebx
mov dword [ebp - 0x4288], ebx
mov dword [ebp - 0x4244], 0x401000
mov dword [ebp - 0x4240], 0x406750
mov dword [ebp - 0x4284], 0x401000
mov dword [ebp - 0x4280], 0x406750
mov dword [ebp - 0x4368], eax
call fcn.004082f0
push ebx
push 0x80
push 3
push ebx
push 1
mov dword [ebp - 4], ebx
mov edx, dword [ebp - 0x4368]
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x4274], eax
cmp eax, 0xffffffff
je 0x407016
xor edi, edi
jmp 0x40701e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x4368]
lea ecx, [ebp - 0x4364]
cmp eax, ecx
je 0x40703e
push eax
call fcn.00409e8b
add esp, 4
cmp edi, ebx
jne 0x407439
lea edx, [ebp - 0x427c]
mov dword [ebp - 0x427c], 0x401ce0
mov dword [ebp - 0x4278], 0x401d10
mov dword [ebp - 0x423c], 0x404450
mov dword [ebp - 0x4238], 0x4044b0
mov dword [ebp - 0x4234], 0x4044c0
mov dword [ebp - 0x4230], 0x404520
mov dword [ebp - 0x422c], edx
mov dword [ebp - 0x4224], ebx
mov dword [ebp - 0x4228], ebx
call fcn.00401070
lea eax, [ebp - 0x423c]
push eax
lea ecx, [ebp - 0x42e4]
push ecx
lea edx, [ebp - 0x4284]
lea ecx, [ebp - 0x4244]
mov dword [ebp - 0x42e4], ebx
mov dword [ebp - 0x42e0], ebx
mov dword [ebp - 0x42dc], ebx
mov dword [ebp - 0x42d8], ebx
mov dword [ebp - 0x42d4], ebx
mov dword [ebp - 0x42d0], ebx
mov dword [ebp - 0x42cc], ebx
mov dword [ebp - 0x42c8], ebx
mov dword [ebp - 0x42b4], ebx
mov dword [ebp - 0x42b0], ebx
mov dword [ebp - 0x42ac], ebx
mov dword [ebp - 0x42a8], ebx
mov dword [ebp - 0x42a4], ebx
mov dword [ebp - 0x42a0], ebx
mov dword [ebp - 0x429c], ebx
call fcn.00403e00
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x407132
lea edi, [ebp - 0x4244]
lea eax, [ebp - 0x42e4]
call fcn.00401f00
mov dword [ebp - 0x4248], esi
cmp esi, ebx
jne 0x407433
xor edi, edi
mov dword [ebp - 0x4268], edi
cmp dword [ebp - 0x42c8], ebx
jbe 0x40741c
mov edx, dword [ebp - 0x42d4]
mov dword [ebp - 0x4260], ebx
mov dword [ebp - 0x4254], edx
jmp 0x407170
push 0x206
lea ecx, [ebp - 0x21a]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x21c], ax
call fcn.0040e0c0
mov edx, dword [ebp - 0x428c]
add esp, 0xc
push edx
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.0040aa11
mov ecx, dword [ebp - 0x42a4]
mov esi, dword [ecx + edi*4 + 4]
sub esi, dword [ecx + edi*4]
add esp, 0xc
mov dword [ebp - 0x4250], ebx
mov dword [ebp - 0x425c], ebx
cmp esi, dword [ebp - 0x4270]
jbe 0x407206
mov ecx, dword [ebp - 0x424c]
push ecx
call fcn.00409e8b
mov dword [ebp - 0x4270], esi
add esi, esi
add esp, 4
cmp esi, ebx
je 0x40740c
push esi
call fcn.00409f68
add esp, 4
mov dword [ebp - 0x424c], eax
cmp eax, ebx
je 0x407412
mov ecx, dword [ebp - 0x42a4]
mov eax, dword [ecx + edi*4]
mov ecx, dword [ecx + edi*4 + 4]
mov esi, dword [ebp - 0x424c]
sub ecx, eax
cmp esi, ebx
je 0x407245
mov edx, dword [ebp - 0x42a0]
lea edx, [edx + eax*2]
cmp ecx, ebx
jbe 0x407245
mov eax, esi
sub edx, esi
lea ebx, [ebx]
mov si, word [edx + eax]
mov word [eax], si
add eax, 2
sub ecx, 1
jne 0x407230
mov esi, dword [ebp - 0x424c]
push esi
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, dword [ebp - 0x4254]
cmp byte [ecx + 0x19], bl
jne 0x4072b3
lea edx, [ebp - 0x4284]
push edx
lea eax, [ebp - 0x4244]
push eax
lea ecx, [ebp - 0x425c]
push ecx
lea edx, [ebp - 0x4250]
push edx
lea eax, [ebp - 0x4288]
push eax
lea ecx, [ebp - 0x4258]
push ecx
lea edx, [ebp - 0x4290]
push edx
lea eax, [ebp - 0x423c]
push edi
push eax
lea eax, [ebp - 0x42e4]
call fcn.004041b0
add esp, 0x24
mov dword [ebp - 0x4248], eax
cmp eax, ebx
jne 0x40741c
mov dword [ebp - 0x4264], ebx
cmp word [ebp - 0x21c], bx
je 0x407317
lea esi, [ebp - 0x21c]
jmp 0x4072d0
movzx eax, word [esi]
cmp ax, 0x2f
je 0x4072e3
mov ecx, 0x2f2f
cmp ax, cx
jne 0x4072fe
push ebx
lea eax, [ebp - 0x21c]
xor edx, edx
push eax
mov word [esi], dx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, 0x5c
mov word [esi], cx
mov eax, dword [ebp - 0x4264]
inc eax
lea esi, [ebp + eax*2 - 0x21c]
mov dword [ebp - 0x4264], eax
cmp word [esi], bx
jne 0x4072d0
mov edx, dword [ebp - 0x4254]
push ebx
lea eax, [ebp - 0x21c]
cmp byte [edx + 0x19], bl
je 0x407335
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4073bb
mov ecx, dword [ebp - 0x4250]
mov edx, dword [ebp - 0x4258]
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
lea edi, [ecx + edx]
mov dword [ebp - 0x4250], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40736d
mov eax, 1
jmp 0x4073af
mov edx, dword [ebp - 0x425c]
push ebx
lea ecx, [ebp - 0x426c]
push ecx
push edx
push edi
push esi
mov dword [ebp - 0x426c], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x425c]
cmp dword [ebp - 0x426c], eax
je 0x4073a2
mov dword [ebp - 0x4250], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x4250]
mov edi, dword [ebp - 0x4268]
mov dword [ebp - 0x4248], eax
cmp dword [ebp - 0x4248], ebx
jne 0x40741c
mov esi, dword [ebp - 0x4260]
xor edx, edx
mov eax, esi
div dword [ebp - 0x42c8]
mov ecx, dword [0x41b544]
push ebx
push eax
push 0x466
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
add dword [ebp - 0x4254], 0x20
inc edi
add esi, 0x64
mov dword [ebp - 0x4268], edi
mov dword [ebp - 0x4260], esi
cmp edi, dword [ebp - 0x42c8]
jb 0x407170
jmp 0x40741c
mov dword [ebp - 0x424c], ebx
mov dword [ebp - 0x4248], 1
mov edx, dword [ebp - 0x4258]
push edx
lea eax, [ebp - 0x4244]
push eax
call dword [ebp - 0x4240]
add esp, 8
mov edi, dword [ebp - 0x4248]
mov ecx, dword [ebp - 0x42b4]
push ecx
lea edx, [ebp - 0x4244]
push edx
call dword [ebp - 0x4240]
mov eax, dword [ebp - 0x42b0]
push eax
lea ecx, [ebp - 0x4244]
push ecx
call dword [ebp - 0x4240]
mov edx, dword [ebp - 0x42ac]
push edx
lea eax, [ebp - 0x4244]
push eax
call dword [ebp - 0x4240]
mov ecx, dword [ebp - 0x42a8]
push ecx
lea edx, [ebp - 0x4244]
push edx
call dword [ebp - 0x4240]
mov eax, dword [ebp - 0x42a4]
push eax
lea ecx, [ebp - 0x4244]
push ecx
call dword [ebp - 0x4240]
mov edx, dword [ebp - 0x42a0]
push edx
lea eax, [ebp - 0x4244]
push eax
call dword [ebp - 0x4240]
lea eax, [ebp - 0x4244]
lea esi, [ebp - 0x42e4]
mov dword [ebp - 0x42a0], ebx
mov dword [ebp - 0x429c], ebx
call fcn.00401e70
mov ecx, dword [ebp - 0x424c]
push ecx
call fcn.00409e8b
mov eax, dword [ebp - 0x4274]
add esp, 0x34
cmp eax, 0xffffffff
je 0x4074f9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4074f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00409e7c
mov esp, ebp
pop ebp
ret