Function at 0x4a98e0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ed9c7
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x670f1c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov eax, dword [esp + 0x70]
mov esi, ecx
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 0x48]
mov edx, dword [esi + 0x40]
mov eax, dword [esi + 0x3c]
push ecx
xor edi, edi
push edi
push 0xa00000
push edx
push eax
mov dword [esp + 0x54], edi
call fcn.004c15f0
mov ecx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x68]
mov edx, dword [esp + 0x70]
push eax
mov eax, dword [esi + 0xda]
push ecx
push ebx
push edx
push 0x50f580
push eax
call fcn.00418e20
mov ebp, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x40], edi
add esp, 0x1c
lea edi, [esi + 0xa8]
push edi
call ebp
push edi
mov dword [esi + 0xde], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x60], 8
mov eax, dword [esp + 0x4c]
jae 0x4a9985
lea eax, [esp + 0x4c]
mov ecx, dword [esp + 0x74]
push 0
or ecx, 0x10000000
push ecx
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x4a9a11
push edi
call ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
push edi
mov dword [esi + 0xde], ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp ebp, 0x5aa
je 0x4a99f3
cmp ebp, 0x6f8
je 0x4a99f3
cmp dword [esp + 0x60], 8
jb 0x4a99e9
mov edx, dword [esp + 0x4c]
push edx
call fcn.004aef39
add esp, 4
mov eax, 0xffffcd35
jmp 0x4a9c76
cmp dword [esp + 0x60], 8
jb 0x4a9a07
mov eax, dword [esp + 0x4c]
push eax
call fcn.004aef39
add esp, 4
mov eax, 0xffffcd2f
jmp 0x4a9c76
mov ecx, dword [esp + 0x68]
push 0
lea edx, [esp + 0x30]
push edx
push ebx
push eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4a9a9d
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
test eax, eax
je 0x4a9a9d
push edi
call ebp
call ebx
mov ebx, eax
push edi
mov dword [esi + 0xde], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp ebx, 0x5aa
je 0x4a9a7f
cmp ebx, 0x6f8
je 0x4a9a7f
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x48]
call fcn.00401470
mov eax, 0xffffcd33
jmp 0x4a9c76
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x48]
call fcn.00401470
mov eax, 0xffffcd2f
jmp 0x4a9c76
lea edx, [esp + 0x30]
lea ebx, [esi + 0xd0]
push edx
mov ecx, ebx
call fcn.004113f0
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [esp + 0x30]
push ecx
mov ecx, ebx
mov dword [esp + 0x18], eax
call fcn.00411460
fst qword [esp + 0x1c]
fld qword [0x4ffcf0]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x4a9afa
fstp st(0)
fld qword [0x4ffcf8]
fst qword [esp + 0x1c]
cmp dword [esp + 0x14], 0
jne 0x4a9b5e
push edi
fstp st(0)
call ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push edi
mov dword [esi + 0xde], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp ebx, 0x5aa
je 0x4a9b49
cmp ebx, 0x6f8
je 0x4a9b49
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x48]
call fcn.00401470
mov eax, 0xffffcd32
jmp 0x4a9c76
cmp dword [esp + 0x24], 0
ja 0x4a9b5a
mov eax, dword [esp + 0x18]
push eax
jmp 0x4a9a84
fld qword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
fild dword [esp + 0x24]
test ecx, ecx
jge 0x4a9b70
fadd qword [0x4f9540]
fdivrp st(1)
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
or eax, 0xc00
mov dword [esp + 0x1c], eax
fldcw word [esp + 0x1c]
fistp qword [esp + 0x1c]
mov edi, dword [esp + 0x1c]
test edi, edi
fldcw word [esp + 0x14]
jbe 0x4a9c15
push 0x78c828
call ebp
mov eax, dword [0x78c824]
test eax, eax
jne 0x4a9bb0
mov dword [0x78c824], edi
jmp 0x4a9c0a
test edi, edi
mov dword [esp + 0x1c], edi
fild dword [esp + 0x1c]
jge 0x4a9bc2
fadd qword [0x4f9540]
test eax, eax
fmul qword [0x4f67a8]
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
jge 0x4a9bda
fadd qword [0x4f9540]
fmul qword [0x50f998]
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
faddp st(1)
or eax, 0xc00
mov dword [esp + 0x1c], eax
fldcw word [esp + 0x1c]
fistp qword [esp + 0x1c]
mov edx, dword [esp + 0x1c]
mov dword [0x78c824], edx
fldcw word [esp + 0x14]
push 0x78c828
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x3c]
push eax
push 0
push 0xa00000
push ecx
push edx
call fcn.004c15f0
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x70]
push eax
mov eax, dword [esi + 0xda]
push ecx
push edx
push 0x50f610
push eax
call fcn.00418e20
mov ecx, dword [esp + 0x34]
add esp, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x60], 8
mov esi, dword [esp + 0x24]
jb 0x4a9c74
mov edx, dword [esp + 0x4c]
push edx
call fcn.004aef39
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0x30