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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x42cc
call fcn.00554d90
mov eax, dword [0x60b9b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x401c
lea eax, [ebp - 0x4230]
mov dword [ebp - 0x426c], edx
xorps xmm0, xmm0
mov dword [ebp - 0x4268], 0
push 0
push eax
mov esi, ecx
movq qword [ebp - 0x4264], xmm0
call fcn.00557410
add esp, 0xc
lea eax, [ebp - 0x42c8]
push 0x50
push 0
push eax
call fcn.00557410
add esp, 0xc
mov dword [ebp - 0x4234], 0
xor edi, edi
mov dword [ebp - 0x4258], 0
mov dword [ebp - 0x4248], edi
mov dword [ebp - 0x4254], edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push esi
mov dword [ebp - 0x4274], 0xffffffff
mov dword [ebp - 0x4250], edi
mov dword [ebp - 0x4270], edi
mov dword [ebp - 0x4238], 0x4531a0
mov dword [ebp - 0x4234], 0x4531c0
mov dword [ebp - 0x425c], 0x4531a0
mov dword [ebp - 0x4258], 0x4531c0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4260], eax
cmp eax, 0xffffffff
jne 0x450514
call esi
mov ebx, eax
test ebx, ebx
jne 0x450865
lea eax, [ebp - 0x4268]
mov dword [ebp - 0x4268], 0x4532e0
mov dword [ebp - 0x4264], 0x453300
mov dword [ebp - 0x4230], 0x4533a0
mov dword [ebp - 0x422c], 0x453400
mov dword [ebp - 0x4228], 0x453410
mov dword [ebp - 0x4224], 0x453460
mov dword [ebp - 0x4220], eax
mov dword [ebp - 0x4218], edi
mov dword [ebp - 0x421c], edi
call fcn.00453480
lea ecx, [ebp - 0x42c8]
call fcn.00450c60
lea eax, [ebp - 0x425c]
push eax
lea eax, [ebp - 0x4238]
push eax
lea edx, [ebp - 0x4230]
call fcn.00452bc0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4505b3
lea edx, [ebp - 0x4238]
lea ecx, [ebp - 0x42c8]
call fcn.00450cd0
test ebx, ebx
jne 0x450865
xor esi, esi
mov dword [ebp - 0x423c], esi
cmp dword [ebp - 0x42ac], esi
jbe 0x450849
mov eax, dword [ebp - 0x42b8]
add eax, 0x19
mov dword [ebp - 0x4244], eax
nop word [eax + eax]
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00557410
add esp, 0xc
lea eax, [ebp - 0x210]
push dword [ebp - 0x426c]
push 0x104
push eax
call fcn.005690b0
mov edx, dword [ebp - 0x4288]
add esp, 0xc
mov eax, dword [ebp - 0x423c]
mov dword [ebp - 0x4240], 0
mov dword [ebp - 0x424c], 0
mov esi, dword [edx + esi*4 + 4]
sub esi, dword [edx + eax*4]
cmp esi, dword [ebp - 0x4254]
jbe 0x450675
push edi
call fcn.0055a3b7
add esp, 4
mov dword [ebp - 0x4254], esi
add esi, esi
je 0x45083a
push esi
call fcn.0056257e
mov edi, eax
add esp, 4
mov dword [ebp - 0x4248], edi
test edi, edi
je 0x45083c
mov edx, dword [ebp - 0x4288]
mov esi, dword [ebp - 0x423c]
mov ecx, dword [edx + esi*4]
mov edx, dword [edx + esi*4 + 4]
sub edx, ecx
test edi, edi
je 0x4506b6
mov eax, dword [ebp - 0x4284]
lea esi, [eax + ecx*2]
test edx, edx
je 0x4506b0
mov ecx, edi
sub esi, edi
nop dword [eax]
mov ax, word [esi + ecx]
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
sub edx, 1
jne 0x4506a0
mov esi, dword [ebp - 0x423c]
push edi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [ebp - 0x4244]
cmp byte [eax], 0
jne 0x45071f
lea eax, [ebp - 0x425c]
push eax
lea eax, [ebp - 0x4238]
push eax
lea eax, [ebp - 0x424c]
push eax
lea eax, [ebp - 0x4240]
push eax
lea eax, [ebp - 0x4270]
push eax
lea eax, [ebp - 0x4250]
push eax
lea eax, [ebp - 0x4274]
push eax
push esi
lea edx, [ebp - 0x4230]
lea ecx, [ebp - 0x42c8]
call fcn.00452f50
mov ebx, eax
add esp, 0x20
test ebx, ebx
jne 0x450849
xor edi, edi
cmp word [ebp - 0x210], di
je 0x45077d
xor ecx, ecx
lea esi, [ebp - 0x210]
movzx eax, word [esi]
cmp eax, 0x2f
je 0x450744
mov edx, 0x2f2f
cmp ax, dx
jne 0x45076b
cmp ecx, 0x208
jae 0x450930
xor eax, eax
push eax
mov word [esi], ax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, 0x5c
mov word [esi], ax
inc edi
lea esi, [ebp - 0x210]
lea ecx, [edi + edi]
add esi, ecx
cmp word [esi], 0
jne 0x450732
mov edi, dword [ebp - 0x4244]
lea eax, [ebp - 0x210]
push 0
cmp byte [edi], 0
je 0x450799
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x45080d
mov edi, dword [ebp - 0x4240]
xor ebx, ebx
add edi, dword [ebp - 0x4250]
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 0x4507ca
mov ebx, 1
jmp 0x450807
push 0
lea eax, [ebp - 0x4240]
mov dword [ebp - 0x4240], ebx
push eax
push dword [ebp - 0x424c]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x424c]
cmp dword [ebp - 0x4240], eax
mov eax, 1
cmovne ebx, eax
cmp esi, 0xffffffff
je 0x450807
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x4244]
test ebx, ebx
jne 0x450843
mov esi, dword [ebp - 0x423c]
add edi, 0x20
inc esi
mov dword [ebp - 0x4244], edi
mov edi, dword [ebp - 0x4248]
mov dword [ebp - 0x423c], esi
cmp esi, dword [ebp - 0x42ac]
jae 0x450849
jmp 0x4505e0
xor edi, edi
mov ebx, 1
jmp 0x450849
mov edi, dword [ebp - 0x4248]
push dword [ebp - 0x4250]
lea eax, [ebp - 0x4238]
push eax
call dword [ebp - 0x4234]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 8
push dword [ebp - 0x4298]
lea eax, [ebp - 0x4238]
push eax
call dword [ebp - 0x4234]
push dword [ebp - 0x4294]
lea eax, [ebp - 0x4238]
push eax
call dword [ebp - 0x4234]
push dword [ebp - 0x4290]
lea eax, [ebp - 0x4238]
push eax
call dword [ebp - 0x4234]
push dword [ebp - 0x428c]
lea eax, [ebp - 0x4238]
push eax
call dword [ebp - 0x4234]
push dword [ebp - 0x4288]
lea eax, [ebp - 0x4238]
push eax
call dword [ebp - 0x4234]
push dword [ebp - 0x4284]
lea eax, [ebp - 0x4238]
push eax
call dword [ebp - 0x4234]
lea edx, [ebp - 0x4238]
mov dword [ebp - 0x4284], 0
lea ecx, [ebp - 0x42c8]
mov dword [ebp - 0x4280], 0
call fcn.00450bb0
push edi
call fcn.0055a3b7
mov eax, dword [ebp - 0x4260]
add esp, 0x34
cmp eax, 0xffffffff
je 0x45091d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x45091d
call esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00553c8d
mov esp, ebp
pop ebp
ret
call fcn.005544a9
int3