Function at 0x4525d2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4240
call fcn.00466fd0
mov eax, dword [0x487304]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, ecx
xor ecx, ecx
push esi
mov esi, dword [ebp + 0xc]
inc ecx
mov dword [ebp - 0x4240], esi
push edi
cmp eax, 3
je 0x452618
cmp eax, 2
je 0x45260f
cmp eax, ecx
jne 0x4526b5
cmp eax, 3
jne 0x452699
mov edi, dword [ebp + 8]
cmp edi, dword [ebx + 4]
je 0x45265d
cmp dword [ebx + 4], 0xffffffff
je 0x45262e
push dword [ebx]
call fcn.00454e5b
pop ecx
mov eax, dword [ebx]
or dword [ebx + 4], 0xffffffff
cmp edi, dword [eax + 4]
jge 0x4526b5
cmp edi, dword [eax + 0x10]
jge 0x45264c
push eax
call fcn.00454ee6
jmp 0x45264b
call fcn.00454f25
pop ecx
mov eax, dword [ebx]
push eax
cmp dword [eax + 0x10], edi
jl 0x452646
call fcn.0045506a
pop ecx
mov dword [ebx + 4], edi
push dword [ebp + 0x10]
push esi
push dword [ebx]
call fcn.004552c9
mov esi, eax
add esp, 0xc
test esi, esi
jle 0x45267b
mov eax, 0x600
jmp 0x4528d8
push dword [ebx]
call fcn.00454e5b
or dword [ebx + 4], 0xffffffff
pop ecx
test esi, esi
je 0x45270f
mov eax, 0x5000000
jmp 0x4528d8
cmp dword [ebx + 4], 0xffffffff
je 0x4526a7
push dword [ebx]
call fcn.00454e5b
pop ecx
mov eax, dword [ebx]
or dword [ebx + 4], 0xffffffff
mov edi, dword [ebp + 8]
cmp edi, dword [eax + 4]
jl 0x4526bf
mov eax, 0x10000
jmp 0x4528d8
cmp edi, dword [eax + 0x10]
jge 0x4526d3
push eax
call fcn.00454ee6
jmp 0x4526d2
push eax
call fcn.00454f25
pop ecx
mov eax, dword [ebx]
cmp dword [eax + 0x10], edi
jl 0x4526cc
lea eax, [ebp - 0x4234]
mov ecx, ebx
push eax
push edi
call fcn.004520e8
xor eax, eax
test byte [ebp - 0x412c], 0x10
je 0x452716
inc eax
cmp dword [ebp + 0x14], eax
je 0x45270f
lea eax, [ebp - 0x4230]
push eax
lea eax, [ebx + 0x138]
push eax
call fcn.00451f77
pop ecx
pop ecx
xor eax, eax
jmp 0x4528d8
cmp dword [ebp + 0x14], 1
mov dword [ebp - 0x423c], eax
je 0x452812
mov cl, byte [esi]
mov edi, esi
mov edx, esi
test cl, cl
je 0x4527f9
cmp cl, 0x2f
je 0x452741
cmp cl, 0x5c
je 0x452741
inc edx
jmp 0x452746
lea edi, [edx + 1]
mov edx, edi
mov cl, byte [edx]
test cl, cl
jne 0x452734
cmp edi, esi
je 0x4527f9
lea eax, [ebp - 0x108]
push esi
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
sub edi, esi
dec edi
pop ecx
pop ecx
cmp edi, 0x104
jae 0x4528e9
xor eax, eax
mov byte [ebp + edi - 0x108], al
mov cl, byte [ebp - 0x108]
cmp cl, 0x2f
je 0x452794
cmp cl, 0x5c
je 0x452794
cmp byte [ebp - 0x107], 0x3a
jne 0x452797
xor eax, eax
inc eax
mov esi, dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsstr]
mov byte [ebp - 0x4235], al
lea eax, [ebp - 0x108]
push 0x473c18
push eax
call esi
mov edi, eax
lea eax, [ebp - 0x108]
push 0x473c1c
push eax
call esi
movzx ecx, byte [ebp - 0x4235]
add esp, 0x10
test eax, eax
setne dl
test edi, edi
push 1
pop eax
cmovne ecx, eax
or dl, cl
jne 0x4527f1
lea eax, [ebp - 0x108]
push eax
lea eax, [ebx + 0x138]
push eax
call fcn.00451f77
pop ecx
pop ecx
mov esi, dword [ebp - 0x4240]
xor eax, eax
push eax
push dword [ebp - 0x412c]
push 2
push eax
push eax
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x452821
mov eax, 0x200
jmp 0x4528d8
push dword [ebx]
call fcn.0045506a
mov edi, 0x4000
lea eax, [ebp - 0x4108]
push edi
push eax
push dword [ebx]
call fcn.004552c9
add esp, 0x10
jmp 0x452871
je 0x45287e
push 0
lea ecx, [ebp - 0x4240]
push ecx
push eax
lea eax, [ebp - 0x4108]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x452875
push edi
lea eax, [ebp - 0x4108]
push eax
push dword [ebx]
call fcn.004552c9
add esp, 0xc
test eax, eax
jns 0x452841
xor eax, eax
inc eax
mov byte [ebp - 0x423c], al
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x4528b1
cmp byte [ebp - 0x423c], 0
jne 0x4528b1
lea eax, [ebp - 0x4118]
push eax
lea eax, [ebp - 0x4128]
push eax
lea eax, [ebp - 0x4120]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
xor eax, eax
inc eax
cmp dword [ebp + 0x14], eax
je 0x4528c0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebx]
call fcn.00454e5b
xor eax, eax
cmp byte [ebp - 0x423c], al
pop ecx
mov ecx, 0x400
cmovne eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004662d8
leave
ret 0x10
call fcn.00466a89
int3