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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509517
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x564690]
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 dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
push 0x400
mov dword [ebp - 0x64], 0
mov byte [ebp - 4], 3
call fcn.004e3b54
add esp, 4
mov dword [ebp - 0x6c], eax
push 0x800
call fcn.004e3b54
add esp, 4
mov dword [ebp - 0x78], eax
push 0x4000
call fcn.004e3b54
add esp, 4
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x70], eax
call fcn.00472340
mov eax, dword [0x5641c0]
mov ecx, 0x5641c0
mov byte [ebp - 4], 4
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x54], esi
mov eax, dword [0x5641c0]
mov ecx, 0x5641c0
mov byte [ebp - 4], 5
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x58], edi
mov eax, dword [0x5641c0]
mov ecx, 0x5641c0
mov byte [ebp - 4], 6
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x94], ebx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 7
call fcn.004727d0
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0xc], 0
jne 0x472fb5
xor eax, eax
jmp 0x472fc9
cmp dword [eax - 4], 1
jle 0x472fc9
push dword [eax - 0xc]
lea ecx, [ebp + 0x10]
call fcn.00405a60
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x13c]
call fcn.00472be0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x13c]
call fcn.00472700
lea ecx, [ebp - 0x13c]
call fcn.00472720
xor eax, eax
mov dword [ebp - 0x7c], eax
cmp eax, dword [ebp - 0x9c]
jge 0x473531
lea ecx, [ebp - 0x13c]
test eax, eax
jne 0x47301f
call fcn.00472720
jmp 0x473024
call fcn.00472760
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0xc], 0
jne 0x473031
xor eax, eax
jmp 0x473045
cmp dword [eax - 4], 1
jle 0x473045
push dword [eax - 0xc]
lea ecx, [ebp + 0x10]
call fcn.00405a60
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x13c]
call fcn.00472be0
push 0x400
push 0
push dword [ebp - 0x6c]
call fcn.004e6690
mov esi, dword [ebp - 0x78]
push 0x800
push 0
push esi
call fcn.004e6690
add esp, 0x18
lea eax, [ebp - 0x50]
push 0
push 0
push 0
push 0
push 0x400
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x13c]
push eax
call fcn.004726a0
push 0x400
push esi
push 0xffffffffffffffff
push dword [ebp - 0x6c]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test esi, esi
jne 0x4730b2
xor ecx, ecx
jmp 0x4730c6
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4730b7
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x54]
call fcn.00409890
mov eax, dword [ebp + 8]
lea esi, [edi - 0x10]
lea edx, [eax - 0x10]
cmp edx, esi
je 0x473126
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x473117
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x473117
push edx
call fcn.00405870
add esp, 4
mov dword [ebp - 0x60], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x47310f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x60]
lea edi, [eax + 0x10]
mov dword [ebp - 0x58], edi
jmp 0x473126
push dword [eax - 0xc]
lea ecx, [ebp - 0x58]
push eax
call fcn.00409890
mov edi, dword [ebp - 0x58]
mov esi, dword [ebp - 0x54]
push 0x522194
push esi
call fcn.004ebc39
add esp, 8
test eax, eax
jne 0x473140
or eax, 0xffffffff
jmp 0x473144
sub eax, esi
sar eax, 1
mov dword [ebp - 0x60], eax
test eax, eax
js 0x4733a9
inc eax
push eax
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x54]
call fcn.004074d0
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x84]
push eax
mov byte [ebp - 4], 8
call fcn.00402920
add esp, 0xc
mov edx, dword [eax]
lea ecx, [edi - 0x10]
lea eax, [edx - 0x10]
mov byte [ebp - 4], 9
mov dword [ebp - 0x5c], ecx
cmp eax, ecx
je 0x473246
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x74], eax
jl 0x473237
mov eax, dword [edx - 0x10]
lea edi, [edx - 0x10]
mov dword [ebp - 0x68], eax
cmp eax, dword [ecx]
jne 0x473237
mov eax, dword [eax]
mov ecx, dword [ebp - 0x68]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
mov ecx, eax
jl 0x4731d2
cmp ecx, dword [edi]
jne 0x4731d2
mov eax, 1
lock xadd dword [edx], eax
jmp 0x473215
mov eax, dword [ecx]
push 2
push dword [edi + 4]
call dword [eax]
mov edx, eax
mov dword [ebp - 0x68], edx
test edx, edx
jne 0x4731e9
call fcn.00409c50
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
mov ecx, dword [edi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [edi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
call fcn.004e5c88
mov edi, dword [ebp - 0x68]
add esp, 0x10
mov ecx, dword [ebp - 0x74]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x47322f
mov edx, dword [ebp - 0x5c]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0x10
mov dword [ebp - 0x58], edi
jmp 0x473246
push dword [edx - 0xc]
lea ecx, [ebp - 0x58]
push edx
call fcn.00409890
mov edi, dword [ebp - 0x58]
mov edx, dword [ebp - 0x84]
add edx, 0xfffffff0
mov byte [ebp - 4], 8
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47326a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x88]
add edx, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47328e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [esi - 0xc]
sub eax, dword [ebp - 0x60]
lea ecx, [ebp - 0x54]
dec eax
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.00408340
mov edx, dword [eax]
lea ecx, [esi - 0x10]
lea eax, [edx - 0x10]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x68], ecx
cmp eax, ecx
je 0x47337c
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x74], eax
jl 0x47336d
mov eax, dword [edx - 0x10]
lea esi, [edx - 0x10]
mov dword [ebp - 0x5c], eax
cmp eax, dword [ecx]
jne 0x47336d
mov eax, dword [eax]
mov ecx, dword [ebp - 0x5c]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
mov ecx, eax
jl 0x473308
cmp ecx, dword [esi]
jne 0x473308
mov eax, 1
lock xadd dword [edx], eax
jmp 0x47334b
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov edx, eax
mov dword [ebp - 0x5c], edx
test edx, edx
jne 0x47331f
call fcn.00409c50
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
mov ecx, dword [esi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
call fcn.004e5c88
mov esi, dword [ebp - 0x5c]
add esp, 0x10
mov ecx, dword [ebp - 0x74]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x473365
mov edx, dword [ebp - 0x68]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0x10
mov dword [ebp - 0x54], esi
jmp 0x47337c
push dword [edx - 0xc]
lea ecx, [ebp - 0x54]
push edx
call fcn.00409890
mov esi, dword [ebp - 0x54]
mov edx, dword [ebp - 0x8c]
add edx, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x473129
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x473129
mov esi, dword [ebp - 0x78]
test esi, esi
jne 0x4733b4
xor ecx, ecx
jmp 0x4733cf
mov ecx, esi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4733c0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x54]
call fcn.00409890
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00402920
add esp, 0xc
mov edx, dword [eax]
lea esi, [edi - 0x10]
lea ecx, [edx - 0x10]
mov byte [ebp - 4], 0xb
cmp ecx, esi
je 0x473446
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x473437
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x473437
push ecx
call fcn.00405870
add esp, 4
mov dword [ebp - 0x5c], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x47342f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x5c]
lea edi, [eax + 0x10]
mov dword [ebp - 0x58], edi
jmp 0x473446
push dword [edx - 0xc]
lea ecx, [ebp - 0x58]
push edx
call fcn.00409890
mov edi, dword [ebp - 0x58]
mov edx, dword [ebp - 0x80]
add edx, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x473467
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x54]
push 0x2f
push esi
call fcn.004e7438
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x473480
or ecx, 0xffffffff
jmp 0x473484
sub ecx, esi
sar ecx, 1
mov eax, dword [esi - 0xc]
dec eax
push 0
cmp ecx, eax
jne 0x4734a9
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x13c]
call fcn.00472660
mov eax, dword [ebp - 0x7c]
inc eax
jmp 0x472fff
push 0x80
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x64], eax
push 0x4000
push 0
push dword [ebp - 0x70]
call fcn.004e6690
add esp, 0xc
lea ecx, [ebp - 0x13c]
push 0x4000
push dword [ebp - 0x70]
call fcn.00472c00
test eax, eax
jne 0x473519
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x64], 0
call fcn.00472660
mov eax, dword [ebp - 0x7c]
inc eax
jmp 0x472fff
push 0
lea ecx, [ebp - 0x90]
push ecx
push eax
push dword [ebp - 0x70]
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4734c3
push dword [ebp - 0x6c]
call fcn.004e5c83
mov eax, dword [ebp - 0x78]
push eax
call fcn.004e5c83
push dword [ebp - 0x70]
call fcn.004e5c83
add ebx, 0xfffffff0
add esp, 0xc
mov byte [ebp - 4], 6
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47356b
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
or ebx, 0xffffffff
mov byte [ebp - 4], 5
lea eax, [edi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47358b
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4735a8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x13c]
call fcn.00472490
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4735d3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4735f3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x473614
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
jmp 0x473646
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.004e50b4
mov esp, ebp
pop ebp
ret