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

Disassembly:
push 0xffffffffffffffff
push 0x4483f0
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x458ad0]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x458ad0]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, 0x44e187
lea edi, [esp + 0xa4]
mov dword [esp + 0x9c], 1
call fcn.00406d80
test al, al
je 0x413153
mov esi, 0x10
cmp dword [esp + 0xbc], esi
jb 0x413118
mov eax, dword [esp + 0xa8]
push eax
call fcn.0041e1fe
add esp, 4
xor ebx, ebx
mov dword [esp + 0xbc], 0xf
mov dword [esp + 0xb8], ebx
mov byte [esp + 0xa8], bl
cmp dword [esp + 0xd8], esi
jb 0x41314c
mov ecx, dword [esp + 0xc4]
push ecx
call fcn.0041e1fe
add esp, 4
xor al, al
jmp 0x4134e7
mov eax, dword [esp + 0xdc]
xor ebx, ebx
cmp al, bl
je 0x413169
mov edx, dword [esi + 4]
mov dword [esp + 0x14], edx
jmp 0x41316f
mov ecx, dword [esi]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0xa8]
mov edi, 0x10
cmp dword [esp + 0xbc], edi
jae 0x41318b
lea edx, [esp + 0xa8]
push eax
lea eax, [esp + 0x4c]
push eax
mov ecx, esi
call fcn.00412680
mov byte [esp + 0x9c], 2
mov ecx, dword [esp + 0x50]
or ecx, dword [esp + 0x54]
jne 0x413209
lea esi, [esp + 0x48]
call fcn.00412b10
cmp dword [esp + 0xbc], edi
jb 0x4131cc
mov edx, dword [esp + 0xa8]
push edx
call fcn.0041e1fe
add esp, 4
mov dword [esp + 0xbc], 0xf
mov dword [esp + 0xb8], ebx
mov byte [esp + 0xa8], bl
cmp dword [esp + 0xd8], edi
jb 0x41314c
mov eax, dword [esp + 0xc4]
push eax
call fcn.0041e1fe
add esp, 4
xor al, al
jmp 0x4134e7
mov eax, dword [esp + 0xa8]
cmp dword [esp + 0xbc], edi
jae 0x413220
lea eax, [esp + 0xa8]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
push ebx
push 2
push eax
mov eax, dword [esi + 0xa8]
push edx
call eax
add esp, 0x14
cmp eax, ebx
je 0x41329c
lea esi, [esp + 0x48]
call fcn.00412b10
cmp dword [esp + 0xbc], edi
jb 0x41325f
mov ecx, dword [esp + 0xa8]
push ecx
call fcn.0041e1fe
add esp, 4
mov dword [esp + 0xbc], 0xf
mov dword [esp + 0xb8], ebx
mov byte [esp + 0xa8], bl
cmp dword [esp + 0xd8], edi
jb 0x41314c
mov edx, dword [esp + 0xc4]
push edx
call fcn.0041e1fe
add esp, 4
xor al, al
jmp 0x4134e7
push 0x80000
call fcn.0041e1f3
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x413477
push ebx
push 1
sub esp, 0x1c
lea eax, [esp + 0xe4]
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
xor edi, edi
call fcn.004034c0
lea ecx, [esp + 0x50]
call fcn.00407320
add esp, 0x20
cmp dword [eax + 0x18], 0x10
jb 0x4132e5
mov eax, dword [eax + 4]
jmp 0x4132e8
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x2c]
call fcn.004034f0
cmp dword [esp + 0xd8], 0x10
mov eax, dword [esp + 0xc4]
jae 0x413310
lea eax, [esp + 0xc4]
push 0x44f254
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.004408c9
add esp, 0xc
test eax, eax
jne 0x413472
cmp dword [esp + 0x54], ebx
jl 0x41345f
jg 0x413341
cmp dword [esp + 0x50], ebx
jbe 0x41345f
mov eax, dword [esp + 0x50]
sub eax, edi
mov dword [esp + 0x18], eax
cmp eax, 0x80000
jb 0x41335a
mov dword [esp + 0x18], 0x80000
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push ebp
push eax
mov eax, dword [esi + 0xac]
push ecx
push edx
call eax
add esp, 0x14
cmp eax, ebx
jne 0x41345f
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x41345f
mov ecx, dword [esp + 0x1c]
push ecx
push eax
push 1
push ebp
call fcn.00440d3b
mov ecx, dword [esp + 0x28]
add esp, 0x10
cmp eax, ecx
jne 0x41345f
push 1
sub esp, 0x1c
mov dword [esp + 0x48], esp
add edi, ecx
mov ecx, esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xcc]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.00403f10
lea ecx, [esp + 0x4c]
call fcn.004073b0
add esp, 0x20
mov eax, edi
shr eax, 0xa
imul eax, eax, 0x64
mov byte [esp + 0x9c], 3
mov ecx, dword [esp + 0x50]
shr ecx, 0xa
xor edx, edx
div ecx
cmp dword [esi + 0x24], ebx
je 0x41342d
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x48], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x54]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.00403f10
mov eax, dword [esi + 0x24]
call eax
add esp, 0x20
mov byte [esp + 0x9c], 2
cmp dword [esp + 0x44], 0x10
jb 0x413449
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0041e1fe
add esp, 4
cmp ebx, dword [esp + 0x54]
jl 0x413341
jg 0x41345f
cmp edi, dword [esp + 0x50]
jb 0x413341
push ebp
call fcn.0041e1fe
mov edx, dword [esp + 0x20]
push edx
call fcn.0043ee48
add esp, 8
mov edi, 0x10
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esi + 0xb0]
push ecx
push edx
call eax
add esp, 0xc
lea esi, [esp + 0x48]
call fcn.00412b10
cmp dword [esp + 0xbc], edi
jb 0x4134b3
mov ecx, dword [esp + 0xa8]
push ecx
call fcn.0041e1fe
add esp, 4
mov dword [esp + 0xbc], 0xf
mov dword [esp + 0xb8], ebx
mov byte [esp + 0xa8], bl
cmp dword [esp + 0xd8], edi
jb 0x4134e5
mov edx, dword [esp + 0xc4]
push edx
call fcn.0041e1fe
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.00428e93
add esp, 0x8c
ret 0x3c