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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f7c07
mov eax, dword fs:[0]
push eax
mov eax, 0x15f4
call fcn.0044eaf0
mov eax, dword [0x6a1564]
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
mov edi, ecx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x114]
mov esi, dword [ebp + 0xc]
push 0
push 0
push 0
push 0
push 0x104
push eax
lea eax, [ebp - 0x15dc]
mov dword [ebp - 0x15e4], ebx
push eax
push ebx
call fcn.00539000
test eax, eax
jne 0x534b0b
push ebx
call fcn.00539410
test eax, eax
jne 0x534b0b
push ebx
lea eax, [ebp - 0x15f8]
push fcn.00538f60
push eax
call fcn.00533870
add esp, 0xc
push esi
lea ecx, [ebp - 0x153c]
mov dword [ebp - 4], 0
call fcn.00404479
xor eax, eax
mov dword [ebp - 0x1540], 7
mov dword [ebp - 0x1544], 0
mov word [ebp - 0x1554], ax
test dword [ebp - 0x15d4], 0x800
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x156c]
push eax
je 0x534799
call fcn.004021d9
mov byte [ebp - 4], 3
push 0xfde9
jmp 0x5347a4
call fcn.004021d9
mov byte [ebp - 4], 4
push 0
lea eax, [ebp - 0x156c]
mov ecx, edi
push eax
lea eax, [ebp - 0x1584]
push eax
call fcn.00533a00
push eax
lea ecx, [ebp - 0x1554]
call fcn.004044cb
lea ecx, [ebp - 0x1584]
call fcn.0041c4a7
lea ecx, [ebp - 0x156c]
mov byte [ebp - 4], 2
call fcn.00402313
mov esi, dword [ebp - 0x1544]
lea eax, [ebp - 0x524]
push 0x410
push 0
push eax
mov dword [ebp - 0x15e0], esi
call fcn.00543220
cmp dword [ebp - 0x1540], 8
lea eax, [esi + esi]
push eax
lea ecx, [ebp - 0x1554]
cmovae ecx, dword [ebp - 0x1554]
lea eax, [ebp - 0x524]
push ecx
push 0x410
push eax
call fcn.00534ca0
xor esi, esi
lea edi, [ebp - 0x524]
add esp, 0x1c
cmp dword [ebp - 0x15e0], esi
jl 0x534911
nop
movzx eax, word [ebp + esi*2 - 0x524]
test ax, ax
je 0x5348e6
cmp eax, 0x5c
je 0x53485b
cmp eax, 0x2f
jne 0x5348d2
cmp esi, 0x208
jae 0x5348e1
xor eax, eax
mov word [ebp + esi*2 - 0x524], ax
cmp word [edi], ax
jne 0x534876
xor ecx, ecx
jmp 0x53488f
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x534880
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x153c]
call fcn.004049a5
push 1
push 0x5fc284
lea ecx, [ebp - 0x153c]
call fcn.004049a5
cmp dword [ebp - 0x1528], 8
lea eax, [ebp - 0x153c]
push 0
cmovae eax, dword [ebp - 0x153c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edi, [ebp + esi*2 - 0x522]
inc esi
cmp esi, dword [ebp - 0x15e0]
jle 0x534840
jmp 0x534911
call fcn.0044ec40
cmp word [edi], 0
jne 0x5348f0
xor ecx, ecx
jmp 0x534904
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5348f5
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x153c]
call fcn.004049a5
cmp word [edi], 0
jne 0x5349aa
mov eax, dword [ebp - 0x1540]
cmp eax, 8
jb 0x534939
inc eax
lea ecx, [ebp - 0x1554]
push eax
push dword [ebp - 0x1554]
call fcn.0045077e
xor eax, eax
mov dword [ebp - 0x1540], 7
mov word [ebp - 0x1554], ax
mov eax, dword [ebp - 0x1528]
mov dword [ebp - 0x1544], 0
cmp eax, 8
jb 0x534974
inc eax
lea ecx, [ebp - 0x153c]
push eax
push dword [ebp - 0x153c]
call fcn.0045077e
xor eax, eax
mov dword [ebp - 0x1528], 7
mov word [ebp - 0x153c], ax
lea eax, [ebp - 0x15f8]
push eax
mov dword [ebp - 0x152c], 0
call fcn.005338d0
add esp, 4
mov eax, 1
jmp 0x534b0d
cmp dword [ebp - 0x1528], 8
lea eax, [ebp - 0x153c]
push 0
cmovae eax, dword [ebp - 0x153c]
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x534a56
mov eax, dword [ebp - 0x1540]
cmp eax, 8
jb 0x5349f9
inc eax
lea ecx, [ebp - 0x1554]
push eax
push dword [ebp - 0x1554]
call fcn.0045077e
xor eax, eax
mov dword [ebp - 0x1540], 7
mov word [ebp - 0x1554], ax
mov eax, dword [ebp - 0x1528]
mov dword [ebp - 0x1544], 0
cmp eax, 8
jb 0x534a34
inc eax
lea ecx, [ebp - 0x153c]
push eax
push dword [ebp - 0x153c]
call fcn.0045077e
xor eax, eax
mov dword [ebp - 0x1528], 7
mov dword [ebp - 0x152c], 0
mov word [ebp - 0x153c], ax
jmp 0x534afc
push edi
push dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x1560]
push eax
call fcn.00533870
add esp, 0xc
lea eax, [ebp - 0x1524]
push 0x1000
push eax
push ebx
call fcn.00539930
mov esi, eax
test esi, esi
js 0x534ad7
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
je 0x534bb9
push 0
lea eax, [ebp - 0x15e0]
mov dword [ebp - 0x15e0], 0
push eax
push esi
lea eax, [ebp - 0x1524]
push eax
push edi
call ebx
test eax, eax
je 0x534b2b
cmp dword [ebp - 0x15e0], esi
jne 0x534b2b
push 0x1000
lea eax, [ebp - 0x1524]
push eax
push dword [ebp - 0x15e4]
call fcn.00539930
mov esi, eax
test esi, esi
jns 0x534a8a
lea eax, [ebp - 0x1560]
push eax
call fcn.005338d0
add esp, 4
lea ecx, [ebp - 0x1554]
call fcn.0041c4a7
lea ecx, [ebp - 0x153c]
call fcn.0041c4a7
lea eax, [ebp - 0x15f8]
push eax
call fcn.005338d0
add esp, 4
xor eax, eax
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.0044e9c4
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x1560]
push eax
call fcn.005338d0
mov eax, dword [ebp - 0x1540]
add esp, 4
cmp eax, 8
jb 0x534b58
inc eax
lea ecx, [ebp - 0x1554]
push eax
push dword [ebp - 0x1554]
call fcn.0045077e
xor eax, eax
mov dword [ebp - 0x1540], 7
mov word [ebp - 0x1554], ax
mov eax, dword [ebp - 0x1528]
mov dword [ebp - 0x1544], 0
cmp eax, 8
jb 0x534a34
inc eax
lea ecx, [ebp - 0x153c]
push eax
push dword [ebp - 0x153c]
call fcn.0045077e
xor eax, eax
mov dword [ebp - 0x1528], 7
mov dword [ebp - 0x152c], 0
mov word [ebp - 0x153c], ax
jmp 0x534afc
lea eax, [ebp - 0x1600]
push eax
mov eax, dword [ebp - 0x15cc]
push eax
shr eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea eax, [ebp - 0x15ec]
push eax
lea eax, [ebp - 0x1600]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea eax, [ebp - 0x15ec]
push eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
lea eax, [ebp - 0x1560]
push eax
call fcn.005338d0
mov eax, dword [ebp - 0x1540]
add esp, 4
cmp eax, 8
jb 0x534c22
inc eax
lea ecx, [ebp - 0x1554]
push eax
push dword [ebp - 0x1554]
call fcn.0045077e
xor eax, eax
mov dword [ebp - 0x1540], 7
mov word [ebp - 0x1554], ax
mov eax, dword [ebp - 0x1528]
mov dword [ebp - 0x1544], 0
cmp eax, 8
jb 0x534c5d
inc eax
lea ecx, [ebp - 0x153c]
push eax
push dword [ebp - 0x153c]
call fcn.0045077e
xor eax, eax
mov dword [ebp - 0x1528], 7
mov word [ebp - 0x153c], ax
lea eax, [ebp - 0x15f8]
push eax
mov dword [ebp - 0x152c], 0
call fcn.005338d0
add esp, 4
mov eax, 1
jmp 0x534b0d