Function at 0x460822
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c749
mov eax, dword fs:[0]
push eax
mov eax, 0x20064
call fcn.00491ff0
mov eax, dword [0x4d4028]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x20014], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20030], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2001c], eax
mov eax, dword [ebp + 0x14]
mov esi, ecx
lea ecx, [ebp - 0x20018]
mov dword [ebp - 0x2002c], eax
call dword [0x4a2ef4]
xor ebx, ebx
lea edi, [ebp - 0x20070]
mov dword [ebp - 4], ebx
call fcn.004601c5
cmp dword [eax], ebx
mov edi, 0x756a
jne 0x4608ab
push 1
push edi
lea eax, [esi + 0x38]
push eax
call fcn.0047df9e
mov ecx, dword [ebp - 0x20014]
mov eax, dword [ecx]
cmp dword [eax - 0xc], ebx
jne 0x4608d3
push 1
push edi
add esi, 0x38
push esi
call fcn.0047df9e
push 0xb09
mov edi, 0x80070057
jmp 0x460d51
push 4
lea eax, [ebp - 0x20044]
push eax
call dword [0x4a2d5c]
push str..iso
mov ecx, eax
call dword [0x4a2ef0]
test eax, eax
lea ecx, [ebp - 0x20044]
setne byte [ebp - 0x2001d]
call dword [0x4a2ee8]
cmp byte [ebp - 0x2001d], bl
je 0x460923
push 1
push 0x756b
add esi, 0x38
push esi
call fcn.0047df9e
push 0xb0f
jmp 0x4608c9
call fcn.004600bf
cmp byte [esi + 0x48c], bl
mov edi, eax
je 0x460974
cmp edi, 8
jle 0x460974
mov eax, dword [ebp - 0x20014]
push dword [eax]
lea eax, [ebp - 0x20018]
push 0x7574
push eax
call dword [0x4a2db8]
add esp, 0xc
push 2
lea eax, [ebp - 0x20018]
push eax
lea ecx, [esi + 0x38]
call fcn.0047deb4
push 0xb18
mov edi, 0x80004005
jmp 0x460d51
push 0x20000
lea eax, [ebp - 0x20010]
push ebx
push eax
call fcn.00491fe0
add esp, 0xc
push dword [ebp - 0x2002c]
push dword [ebp - 0x2001c]
push dword [ebp - 0x20030]
push 1
push edi
push ebx
mov edi, esi
call fcn.0045fe44
test al, al
jne 0x4609c1
push 1
push 0x756d
add esi, 0x38
push esi
call fcn.0047df9e
push 0xb22
jmp 0x46096a
call fcn.00460352
mov dword [ebp - 0x20028], eax
mov dword [ebp - 0x20024], edx
mov dword [ebp - 0x20050], eax
mov dword [ebp - 0x2004c], edx
call fcn.0046003a
test al, al
jne 0x460a01
push 1
push 0x756d
add esi, 0x38
push esi
call fcn.0047df9e
push 0xb35
jmp 0x46096a
mov edi, dword [ebp - 0x20014]
mov eax, dword [edi]
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x2001c], eax
jne 0x460a8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [edi]
mov dword [ebp - 0x20030], eax
lea eax, [ebp - 0x20018]
push 0x756c
push eax
call dword [0x4a2db8]
add esp, 0xc
push 2
lea eax, [ebp - 0x20018]
push eax
lea ecx, [esi + 0x38]
call fcn.0047deb4
mov eax, dword [ebp - 0x20030]
cmp eax, ebx
jle 0x460a6f
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
mov dword [ebp - 0x20014], eax
jge 0x460a8f
push 0xb3f
mov ebx, str..RecDevWrap.cpp
mov edi, eax
call fcn.0041e240
jmp 0x460d5b
push dword [edi]
lea eax, [ebp - 0x20018]
push 0x754c
push eax
call dword [0x4a2db8]
add esp, 0xc
push 1
lea eax, [ebp - 0x20018]
lea ecx, [esi + 0x38]
push eax
mov dword [ebp - 0x20014], ecx
call fcn.0047deb4
fldz
fstp qword [ebp - 0x20058]
fild qword [ebp - 0x20028]
fstp qword [ebp - 0x20068]
mov eax, dword [ebp - 0x20050]
sub eax, dword [ebp - 0x20028]
mov ecx, dword [ebp - 0x2004c]
sbb ecx, dword [ebp - 0x20024]
mov dword [ebp - 0x20060], eax
mov dword [ebp - 0x2005c], ecx
fild qword [ebp - 0x20060]
fld qword [0x4b8bd8]
fmul st(1), st(0)
fxch st(1)
fdiv qword [ebp - 0x20068]
fst qword [ebp - 0x20048]
fld st(0)
call fcn.00492140
fld qword [ebp - 0x20058]
mov edi, eax
call fcn.00492140
cmp eax, edi
je 0x460b59
fucom st(1)
fnstsw ax
fstp st(1)
test ah, 0x44
jnp 0x460b5b
fldz
mov eax, dword [ebp - 0x20014]
sub esp, 0x10
fstp qword [esp + 8]
fstp qword [esp]
call fcn.0047dfe3
fld qword [ebp - 0x20048]
fstp qword [ebp - 0x20058]
jmp 0x460b5d
fstp st(0)
fstp st(0)
mov ecx, dword [ebp - 0x20024]
cmp ecx, ebx
jl 0x460d00
jg 0x460b79
cmp dword [ebp - 0x20028], ebx
jbe 0x460d00
mov eax, dword [esi + 0x464]
cmp eax, ebx
je 0x460b8d
mov al, byte [eax]
test al, al
jne 0x460d39
cmp ecx, ebx
jg 0x460bb3
jl 0x460b9f
cmp dword [ebp - 0x20028], 0x10000
jae 0x460bb3
mov eax, dword [ebp - 0x20028]
mov dword [ebp - 0x20038], eax
mov dword [ebp - 0x20034], ecx
jmp 0x460bc3
mov dword [ebp - 0x20038], 0x10000
mov dword [ebp - 0x20034], ebx
lea eax, [ebp - 0x20010]
push eax
push dword [ebp - 0x20038]
call fcn.0045ffad
test al, al
je 0x460cd8
push ebx
lea eax, [ebp - 0x20030]
push eax
push dword [ebp - 0x20038]
lea eax, [ebp - 0x20010]
push eax
push dword [ebp - 0x2001c]
mov dword [ebp - 0x20030], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x460cbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push ebx
mov edi, eax
lea eax, [ebp - 0x2002c]
push eax
push 0x400
push edi
push ebx
push 0x1300
mov dword [ebp - 0x2002c], ebx
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push ebx
push 0x756e
lea eax, [ebp - 0x2003c]
push eax
call fcn.00403ae0
mov byte [ebp - 4], 1
push dword [ebp - 0x2002c]
push dword [eax]
lea eax, [ebp - 0x20018]
push str._s__s
push eax
call dword [0x4a2ee0]
add esp, 0x10
lea ecx, [ebp - 0x2003c]
mov byte [ebp - 4], bl
call dword [0x4a2ee8]
mov ecx, dword [ebp - 0x20014]
push 2
lea eax, [ebp - 0x20018]
push eax
call fcn.0047deb4
push dword [ebp - 0x2002c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x2001c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
jle 0x460cb5
and edi, 0xffff
or edi, 0x80070000
cmp edi, ebx
jl 0x460d4c
mov eax, dword [ebp - 0x20038]
sub dword [ebp - 0x20028], eax
mov eax, dword [ebp - 0x20034]
sbb dword [ebp - 0x20024], eax
jmp 0x460ad1
push dword [ebp - 0x2001c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push 0x756d
push dword [ebp - 0x20014]
call fcn.0047df9e
push 0xb6a
jmp 0x46096a
fldz
mov eax, dword [ebp - 0x20014]
sub esp, 0x10
fstp qword [esp + 8]
fld qword [0x4b8bd8]
fstp qword [esp]
call fcn.0047dfe3
push dword [ebp - 0x2001c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x20018]
call dword [0x4a2ee8]
xor eax, eax
jmp 0x460d69
push dword [ebp - 0x2001c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0x41306
jmp 0x460d5b
push 0xb7c
mov ebx, str..RecDevWrap.cpp
call fcn.0041e240
lea ecx, [ebp - 0x20018]
call dword [0x4a2ee8]
mov eax, edi
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.00490f79
leave
ret 0x10