Function at 0x457a50
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4afb58
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4ecba0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 0x14], esi
call fcn.0046d74a
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x457a9a
push 0x80004005
call fcn.00402240
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 1
call fcn.004024f0
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x18]
push 0x4b8104
push edx
call fcn.00402d80
mov ebx, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
push esi
cmp ebx, esi
jne 0x457b09
mov esi, dword [ebp - 0x18]
push esi
push 0x3ff
push str.CUSBUtility::vWriteFile
push str._s:_d:_vWriteFile:__strWriteLogicalAddress__s__not_exist_ucpWriteBuffer__x__is_NULL
xor bl, bl
call fcn.0044b650
add esp, 0x14
jmp 0x457c53
push 0x8000080
push 2
push esi
mov esi, dword [ebp - 0x18]
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, 0xffffffff
jne 0x457b59
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x408
push str.CUSBUtility::vWriteFile
push str._s:_d:_vWriteFile:_INVALID_HANDLE_VALUE_Fail____strWriteLogicalAddress__s____dwErrorCode__d
call fcn.0044b7f0
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x457c53
mov ecx, dword [ebp - 0x28]
push 0
lea eax, [ebp - 0x24]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp - 0x14]
push 0
lea edx, [ebp - 0x1c]
push edx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov bl, al
test bl, bl
jne 0x457bab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1c]
push eax
push ecx
push edi
push esi
push 0x415
push str.CUSBUtility::vWriteFile
push str._s:_d:_vWriteFile:_WriteFile_Fail___strWriteLogicalAddress__s____dwNumberOfBytesToWrite__d____dwRpt__d_s__dwErrorCode__d
call fcn.0044b650
add esp, 0x1c
jmp 0x457c01
mov eax, dword [ebp - 0x1c]
cmp eax, edi
je 0x457bc6
push edi
push eax
push esi
push 0x41e
push str.CUSBUtility::vWriteFile
push str._s:_d:_vWriteFile:_strWriteLogicalAddress__s____dwRpt__d____dwWriteBufferSize__d_
jmp 0x457bf7
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0xffffffff
je 0x457be5
test eax, eax
je 0x457c01
push eax
push edi
push esi
push 0x429
push str.CUSBUtility::vWriteFile
push str._s:_d:_vWriteFile:_GetFileSize_Fail____strWriteLogicalAddress__s____dwGetFileSizeRet__d___dwErrorCode__d
xor bl, bl
call fcn.0044b650
add esp, 0x18
cmp dword [ebp - 0x14], 0
je 0x457c53
mov edi, dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x457c53
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x457c76
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc