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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541f4b
mov eax, dword fs:[0]
push eax
mov eax, 0x4344
call fcn.004e5050
mov eax, dword [0x580124]
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 dword [ebp - 0x42f8], edx
mov esi, ecx
push 0x401c
lea eax, [ebp - 0x42b8]
mov dword [ebp - 0x42f4], 0
xorps xmm0, xmm0
push 0
push eax
movq qword [ebp - 0x42f0], xmm0
call fcn.004e8ae0
push 0x50
lea eax, [ebp - 0x4350]
push 0
push eax
call fcn.004e8ae0
add esp, 0x18
mov dword [ebp - 0x42bc], 0
xor edi, edi
mov dword [ebp - 0x42e4], 0
lea eax, [ebp - 0x298]
mov dword [ebp - 0x42cc], edi
lea ecx, [ebp - 0x29c]
mov dword [ebp - 0x42d8], edi
push edi
push esi
mov dword [ebp - 0x4300], 0xffffffff
mov dword [ebp - 0x42d4], edi
mov dword [ebp - 0x42fc], edi
mov dword [ebp - 0x42c0], 0x463660
mov dword [ebp - 0x42bc], 0x463680
mov dword [ebp - 0x42e8], 0x463690
mov dword [ebp - 0x42e4], 0x4636b0
mov dword [ebp - 0x29c], eax
call fcn.004604d0
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
mov dword [ebp - 4], edi
push dword [ebp - 0x29c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x42ec], eax
cmp eax, 0xffffffff
je 0x460002
xor ebx, ebx
jmp 0x460006
call esi
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x298]
mov ecx, dword [ebp - 0x29c]
cmp ecx, eax
je 0x460026
push ecx
call fcn.004f3516
add esp, 4
test ebx, ebx
jne 0x46037a
lea eax, [ebp - 0x42f4]
mov dword [ebp - 0x42f4], 0x4635e0
mov dword [ebp - 0x42f0], 0x463600
mov dword [ebp - 0x42b8], 0x4638e0
mov dword [ebp - 0x42b4], 0x463940
mov dword [ebp - 0x42b0], 0x463950
mov dword [ebp - 0x42ac], 0x4639a0
mov dword [ebp - 0x42a8], eax
mov dword [ebp - 0x42a0], ebx
mov dword [ebp - 0x42a4], ebx
call fcn.00463ac0
lea ecx, [ebp - 0x4350]
call fcn.00460ad0
lea eax, [ebp - 0x42e8]
push eax
lea eax, [ebp - 0x42c0]
push eax
lea edx, [ebp - 0x42b8]
call fcn.00462bd0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4600cd
lea edx, [ebp - 0x42c0]
lea ecx, [ebp - 0x4350]
call fcn.00460b40
test ebx, ebx
jne 0x46037a
xor esi, esi
mov dword [ebp - 0x42c4], esi
cmp dword [ebp - 0x4334], esi
jbe 0x46035e
mov eax, dword [ebp - 0x4340]
add eax, 0x19
mov dword [ebp - 0x42c8], eax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004e8ae0
push dword [ebp - 0x42f8]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.005164d5
mov edx, dword [ebp - 0x4310]
add esp, 0x18
mov eax, dword [ebp - 0x42c4]
mov dword [ebp - 0x42dc], 0
mov dword [ebp - 0x42d0], 0
mov esi, dword [edx + esi*4 + 4]
sub esi, dword [edx + eax*4]
cmp esi, dword [ebp - 0x42d8]
jbe 0x460182
push edi
call fcn.004f3516
add esp, 4
mov dword [ebp - 0x42d8], esi
add esi, esi
je 0x46034a
push esi
call fcn.005055a8
mov edi, eax
add esp, 4
mov dword [ebp - 0x42cc], edi
test edi, edi
je 0x46034c
mov edx, dword [ebp - 0x4310]
mov esi, dword [ebp - 0x42c4]
mov ecx, dword [edx + esi*4]
mov edx, dword [edx + esi*4 + 4]
sub edx, ecx
test edi, edi
je 0x4601c6
mov eax, dword [ebp - 0x430c]
lea esi, [eax + ecx*2]
test edx, edx
je 0x4601c0
mov ecx, edi
sub esi, edi
nop word [eax + eax]
mov ax, word [esi + ecx]
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
sub edx, 1
jne 0x4601b0
mov esi, dword [ebp - 0x42c4]
push edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [ebp - 0x42c8]
cmp byte [eax], 0
jne 0x46022f
lea eax, [ebp - 0x42e8]
push eax
lea eax, [ebp - 0x42c0]
push eax
lea eax, [ebp - 0x42d0]
push eax
lea eax, [ebp - 0x42dc]
push eax
lea eax, [ebp - 0x42fc]
push eax
lea eax, [ebp - 0x42d4]
push eax
lea eax, [ebp - 0x4300]
push eax
push esi
lea edx, [ebp - 0x42b8]
lea ecx, [ebp - 0x4350]
call fcn.00462fc0
mov ebx, eax
add esp, 0x20
test ebx, ebx
jne 0x46035e
xor edi, edi
cmp word [ebp - 0x218], di
je 0x46028d
xor ecx, ecx
lea esi, [ebp - 0x218]
movzx eax, word [esi]
cmp eax, 0x2f
je 0x460254
mov edx, 0x2f2f
cmp ax, dx
jne 0x46027b
cmp ecx, 0x208
jae 0x460353
xor eax, eax
push eax
mov word [esi], ax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, 0x5c
mov word [esi], ax
inc edi
lea esi, [ebp - 0x218]
lea ecx, [edi + edi]
add esi, ecx
cmp word [esi], 0
jne 0x460242
mov edi, dword [ebp - 0x42c8]
lea eax, [ebp - 0x218]
push 0
cmp byte [edi], 0
je 0x4602a9
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x46031d
mov edi, dword [ebp - 0x42dc]
xor ebx, ebx
add edi, dword [ebp - 0x42d4]
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4602da
mov ebx, 1
jmp 0x460317
push 0
lea eax, [ebp - 0x42e0]
mov dword [ebp - 0x42e0], ebx
push eax
push dword [ebp - 0x42d0]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x42d0]
cmp dword [ebp - 0x42e0], eax
mov eax, 1
cmovne ebx, eax
cmp esi, 0xffffffff
je 0x460317
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x42c8]
test ebx, ebx
jne 0x460358
mov esi, dword [ebp - 0x42c4]
add edi, 0x20
inc esi
mov dword [ebp - 0x42c8], edi
mov edi, dword [ebp - 0x42cc]
mov dword [ebp - 0x42c4], esi
cmp esi, dword [ebp - 0x4334]
jae 0x46035e
jmp 0x4600f0
xor edi, edi
mov ebx, 1
jmp 0x46035e
call fcn.004e4e59
mov edi, dword [ebp - 0x42cc]
push dword [ebp - 0x42d4]
lea eax, [ebp - 0x42c0]
push eax
call dword [ebp - 0x42bc]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 8
push dword [ebp - 0x4320]
lea eax, [ebp - 0x42c0]
push eax
call dword [ebp - 0x42bc]
push dword [ebp - 0x431c]
lea eax, [ebp - 0x42c0]
push eax
call dword [ebp - 0x42bc]
push dword [ebp - 0x4318]
lea eax, [ebp - 0x42c0]
push eax
call dword [ebp - 0x42bc]
push dword [ebp - 0x4314]
lea eax, [ebp - 0x42c0]
push eax
call dword [ebp - 0x42bc]
push dword [ebp - 0x4310]
lea eax, [ebp - 0x42c0]
push eax
call dword [ebp - 0x42bc]
push dword [ebp - 0x430c]
lea eax, [ebp - 0x42c0]
push eax
call dword [ebp - 0x42bc]
lea edx, [ebp - 0x42c0]
mov dword [ebp - 0x430c], 0
lea ecx, [ebp - 0x4350]
mov dword [ebp - 0x4308], 0
call fcn.00460a20
push edi
call fcn.004f3516
mov eax, dword [ebp - 0x42ec]
add esp, 0x34
cmp eax, 0xffffffff
je 0x460432
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x460432
call esi
mov eax, ebx
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.004e4c11
mov esp, ebp
pop ebp
ret