Function at 0x414a80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x434c
call fcn.0042a970
mov eax, dword [0x48e300]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x4348], eax
cmp dword [edi + 4], 0xffffffff
je 0x414ab2
mov ecx, dword [edi]
call fcn.00414110
mov ecx, dword [edi]
mov ebx, dword [ebp + 8]
mov dword [edi + 4], 0xffffffff
cmp ebx, dword [ecx + 4]
jl 0x414adb
mov eax, 0x10000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00420548
mov esp, ebp
pop ebp
ret 0x10
cmp ebx, dword [ecx + 0x10]
jge 0x414ae5
call fcn.004139f0
mov eax, dword [edi]
cmp dword [eax + 0x10], ebx
jge 0x414b40
lea esp, [esp]
mov esi, dword [edi]
test esi, esi
je 0x414b39
cmp dword [esi + 0x18], 0
je 0x414b39
mov edx, dword [esi + 0x10]
inc edx
cmp edx, dword [esi + 4]
je 0x414b39
mov ecx, dword [esi + 0x50]
add ecx, dword [esi + 0x4c]
mov eax, dword [esi + 0x48]
add eax, 0x2e
sub esp, 0x10
add eax, ecx
add dword [esi + 0x14], eax
push 0
lea eax, [esi + 0x78]
mov dword [esi + 0x10], edx
push 0
push eax
lea edx, [esi + 0x28]
mov ecx, esi
call fcn.00413610
add esp, 0x1c
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x18], eax
mov eax, dword [edi]
cmp dword [eax + 0x10], ebx
jl 0x414af0
lea eax, [ebp - 0x4340]
push eax
push ebx
mov ecx, edi
call fcn.00414220
test byte [ebp - 0x4238], 0x10
je 0x414bb3
push 0x206
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00424e10
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x103
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x433c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [edi + 0x138]
lea edx, [ebp - 0x210]
call fcn.00414980
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00420548
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [ebp - 0x4348]
mov edx, ebx
movzx eax, word [ebx]
mov ecx, ebx
test ax, ax
je 0x414ca7
lea esp, [esp]
cmp ax, 0x2f
je 0x414bdc
cmp ax, 0x5c
jne 0x414bdf
lea edx, [ecx + 2]
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x414bd0
cmp edx, ebx
je 0x414ca7
lea esi, [ebp - 0x210]
mov ecx, ebx
sub esi, ebx
lea ecx, [ecx]
movzx eax, word [ecx]
mov word [esi + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x414c00
sub edx, ebx
sar edx, 1
lea edx, [edx*2 - 2]
cmp edx, 0x208
jae 0x414d94
xor eax, eax
mov word [ebp + edx - 0x210], ax
mov ax, word [ebp - 0x210]
cmp ax, 0x2f
je 0x414c54
cmp ax, 0x5c
je 0x414c54
cmp word [ebp - 0x20e], 0x3a
mov byte [ebp - 0x4341], 0
jne 0x414c5b
mov byte [ebp - 0x4341], 1
lea eax, [ebp - 0x210]
push 0x482860
push eax
call fcn.00423864
mov esi, eax
lea eax, [ebp - 0x210]
push 0x482868
push eax
call fcn.00423864
add esp, 0x10
test eax, eax
setne cl
test esi, esi
setne al
or cl, al
or cl, byte [ebp - 0x4341]
jne 0x414ca7
lea ecx, [edi + 0x138]
lea edx, [ebp - 0x210]
call fcn.00414980
push 0
push dword [ebp - 0x4238]
push 2
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x414ce0
mov eax, 0x200
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00420548
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [edi]
call fcn.00413e50
mov ecx, dword [edi]
push 0x4000
lea edx, [ebp - 0x4210]
xor bl, bl
call fcn.00413f70
add esp, 4
test eax, eax
js 0x414d39
je 0x414d3b
push 0
lea ecx, [ebp - 0x4348]
push ecx
push eax
lea eax, [ebp - 0x4210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x414d39
mov ecx, dword [edi]
push 0x4000
lea edx, [ebp - 0x4210]
call fcn.00413f70
add esp, 4
test eax, eax
jns 0x414d02
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x414d67
test bl, bl
jne 0x414d67
lea eax, [ebp - 0x4224]
push eax
lea eax, [ebp - 0x4234]
push eax
lea eax, [ebp - 0x422c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [edi]
call fcn.00414110
xor eax, eax
test bl, bl
mov ecx, 0x400
cmovne eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420548
mov esp, ebp
pop ebp
ret 0x10
call fcn.00421b7a
int3