Function at 0x494160
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6cd492
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x108
mov eax, dword [0x75aa5c]
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 - 0xf0], ecx
mov dword [ebp - 4], 0
mov byte [ebp - 0x2d], 1
lea ecx, [ebp - 0x70]
call fcn.00405380
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.00405380
mov byte [ebp - 4], 2
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x50], 0
lea ecx, [ebp + 8]
call fcn.0041dbf0
movzx eax, al
test eax, eax
je 0x494233
push str.default.upf
mov ecx, dword [ebp - 0xf0]
add ecx, 8
push ecx
lea edx, [ebp - 0xb0]
push edx
call fcn.0040b210
add esp, 0xc
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0xf8], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xf8]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.00405440
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xb0]
call fcn.00405410
jmp 0x49429e
push 0x6f99a8
mov edx, dword [ebp - 0xf0]
add edx, 8
push edx
lea eax, [ebp - 0xcc]
push eax
call fcn.0040b210
add esp, 0xc
mov dword [ebp - 0xfc], eax
mov ecx, dword [ebp - 0xfc]
mov dword [ebp - 0x100], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x100]
push edx
lea ecx, [ebp - 0x4c]
call fcn.00405440
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xcc]
call fcn.00405410
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040d450
push 0x6f99ac
lea ecx, [ebp - 0x4c]
call fcn.0040bb20
mov dword [ebp - 0x28], 0
push 0x6f99b8
lea ecx, [ebp - 0x4c]
call fcn.00405490
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.005b1600
add esp, 0xc
cmp dword [ebp - 0x28], 0
jne 0x494301
mov dword [ebp - 0xd0], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.00405410
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00405410
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00405410
mov eax, dword [ebp - 0xd0]
jmp 0x49470e
mov edx, dword [str.TUPF]
mov dword [ebp - 0x24], edx
mov al, byte [0x6f99c4]
mov byte [ebp - 0x20], al
push 4
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x1c]
push edx
call fcn.005a7f00
add esp, 0xc
mov eax, 8
mov word [ebp - 0x18], ax
mov byte [ebp - 0x16], 1
mov byte [ebp - 0x15], 1
mov ecx, dword [ebp - 0x28]
push ecx
push 8
push 1
lea edx, [ebp - 0x1c]
push edx
call fcn.005ab8a9
add esp, 0x10
mov byte [ebp - 4], 5
push str._X_TVU_RD_PROFILE_version_
lea ecx, [ebp - 0x70]
call fcn.00405460
mov eax, dword [ebp - 0xf0]
add eax, 0x24
push eax
lea ecx, [ebp - 0x70]
call fcn.0040d450
push 0x6f9a00
lea ecx, [ebp - 0x70]
call fcn.0040bb20
lea ecx, [ebp - 0x7c]
push ecx
mov ecx, dword [ebp - 0xf0]
add ecx, 0x40
call fcn.00429230
lea edx, [ebp - 0x90]
push edx
mov ecx, dword [ebp - 0xf0]
add ecx, 0x40
call fcn.00429260
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x7c]
call fcn.0042a200
mov byte [ebp - 0x101], al
movzx ecx, byte [ebp - 0x101]
test ecx, ecx
je 0x494424
lea ecx, [ebp - 0x7c]
call fcn.00494b80
mov dword [ebp - 0x108], eax
mov edx, dword [ebp - 0x108]
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x49440e
push 0x6f9a08
lea ecx, [ebp - 0x70]
call fcn.0040bb20
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x54]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x10c]
push ecx
lea ecx, [ebp - 0x70]
call fcn.0040bb20
push 0
lea edx, [ebp - 0xd8]
push edx
lea ecx, [ebp - 0x7c]
call fcn.00494ba0
jmp 0x4943a0
push str._r_n__X_TVU_RD_PROFILE_
lea ecx, [ebp - 0x70]
call fcn.0040bb20
lea ecx, [ebp - 0x70]
call fcn.0042d220
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
lea edx, [ecx + ecx + 2]
lea eax, [edx + edx + 0x80]
push eax
call fcn.005ace68
add esp, 4
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
jne 0x4944b6
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.005ab232
add esp, 4
mov dword [ebp - 0xdc], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.00405410
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00405410
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00405410
mov eax, dword [ebp - 0xdc]
jmp 0x49470e
mov edx, dword [ebp - 0x88]
shl edx, 1
shl edx, 1
push edx
push 0
mov eax, dword [ebp - 0x74]
push eax
call fcn.005a7100
add esp, 0xc
mov ecx, dword [ebp - 0x88]
lea edx, [ecx + ecx + 2]
push edx
call fcn.005ace68
add esp, 4
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
jne 0x494545
mov eax, dword [ebp - 0x74]
push eax
call fcn.005ab0f2
add esp, 4
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.005ab232
add esp, 4
mov dword [ebp - 0xe0], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.00405410
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00405410
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00405410
mov eax, dword [ebp - 0xe0]
jmp 0x49470e
lea ecx, [ebp - 0x70]
call fcn.00405490
mov dword [ebp - 0x114], eax
mov edx, dword [ebp - 0x114]
push edx
mov eax, dword [ebp - 0x84]
push eax
call fcn.005b0b72
add esp, 8
push 0
push 0
push 1
push 0x20
mov ecx, dword [ebp - 0xf0]
add ecx, 0xafc
push ecx
push 0x6f9a3c
mov ecx, dword [ebp - 0xf0]
add ecx, 0x64
call fcn.0048e130
mov edx, dword [ebp - 0x74]
push edx
mov eax, dword [ebp - 0x88]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x84]
push ecx
mov ecx, dword [ebp - 0xf0]
add ecx, 0x64
call fcn.0048e390
mov dword [ebp - 0x118], eax
mov edx, dword [ebp - 0x118]
mov dword [ebp - 0x94], edx
cmp dword [ebp - 0x94], 0
jg 0x494631
mov eax, dword [ebp - 0x74]
push eax
call fcn.005ab0f2
add esp, 4
mov ecx, dword [ebp - 0x84]
push ecx
call fcn.005ab0f2
add esp, 4
mov edx, dword [ebp - 0x28]
push edx
call fcn.005ab232
add esp, 4
mov dword [ebp - 0xe4], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.00405410
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00405410
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00405410
mov eax, dword [ebp - 0xe4]
jmp 0x49470e
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x94]
push ecx
push 1
mov edx, dword [ebp - 0x74]
push edx
call fcn.005ab8a9
add esp, 0x10
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x74]
push eax
call fcn.005ab0f2
add esp, 4
mov ecx, dword [ebp - 0x84]
push ecx
call fcn.005ab0f2
add esp, 4
jmp 0x494693
mov dword [ebp - 4], 2
jmp 0x4946cb
mov eax, dword [ebp - 0x28]
push eax
call fcn.005ab232
add esp, 4
movzx ecx, byte [ebp - 0x2d]
mov dword [ebp - 0xec], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.00405410
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00405410
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00405410
mov eax, dword [ebp - 0xec]
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.005a6f18
mov esp, ebp
pop ebp
ret 0x1c