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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x19
push 0
push 0
dec ecx
jne 0x484209
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x24], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.004099f8
xor eax, eax
push ebp
push 0x484bcf
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x25], 0
cmp dword [ebp - 4], 0
je 0x484b2d
cmp dword [ebp - 0x24], 0
jne 0x48446d
lea edx, [ebp - 8]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x1f8]
cmp byte [ebp + 0xc], 0
jne 0x48444f
mov eax, 0xfa
call fcn.00460c6c
test al, al
je 0x484280
push 0
call sub.user32.dll_MessageBeep
jmp 0x484b2d
push 0x7fffffff
mov edi, dword [0x768bf8]
mov edi, dword [edi]
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, 0x484bf4
call edi
test eax, eax
jle 0x4842c9
lea edx, [ebp - 0x94]
mov eax, dword [ebp - 8]
call fcn.0045eeac
mov edx, dword [ebp - 0x94]
lea eax, [ebp - 8]
call fcn.00409d3c
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.0041630c
jmp 0x4842d8
lea ecx, [ebp - 0xc]
mov dl, 1
mov eax, 0x10
call fcn.004613c0
lea edx, [ebp - 0x98]
mov eax, dword [ebp - 8]
call fcn.004162cc
mov edx, dword [ebp - 0x98]
lea eax, [ebp - 8]
call fcn.00409d3c
lea eax, [ebp - 8]
mov edx, 0x484c04
call fcn.0040ab58
lea eax, [ebp - 8]
mov edx, 0x105
call fcn.0040aad8
lea edx, [ebp - 0x10]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x2ac]
lea eax, [ebp - 0x8d]
mov edx, 0x4c
call fcn.004120bc
mov dword [ebp - 0x8d], 0x4c
mov dword [ebp - 0x89], ebx
mov dword [ebp - 0x75], 1
mov dword [ebp - 0x6d], 0x104
mov dword [ebp - 0x59], 0x8004
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4843b4
mov eax, dword [ebp - 8]
call fcn.0040a944
mov dword [ebp - 0x71], eax
mov eax, dword [ebp - 0xc]
call fcn.0040a944
mov dword [ebp - 0x61], eax
mov eax, dword [ebp - 0x10]
call fcn.0040a944
mov dword [ebp - 0x5d], eax
mov eax, 0x484c08
mov dword [ebp - 0x81], eax
mov eax, 0x484c24
mov dword [ebp - 0x51], eax
lea eax, [ebp - 0x8d]
push eax
call sub.comdlg32.dll_GetSaveFileNameW
test eax, eax
je 0x484b2d
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x71]
call fcn.0040a9ac
jmp 0x484478
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 8]
mov ecx, 0
call fcn.0040a554
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov ecx, 0
call fcn.0040a554
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
mov ecx, 0
call fcn.0040a554
mov eax, dword [ebp - 0x14]
call fcn.0040a3a8
mov dword [ebp - 0x71], eax
mov eax, dword [ebp - 0x18]
call fcn.0040a3a8
mov dword [ebp - 0x61], eax
mov eax, dword [ebp - 0x1c]
call fcn.0040a3a8
mov dword [ebp - 0x5d], eax
mov eax, 0x484c30
mov dword [ebp - 0x81], eax
mov eax, 0x484c40
mov dword [ebp - 0x51], eax
lea eax, [ebp - 0x8d]
push eax
call sub.comdlg32.dll_GetSaveFileNameA
test eax, eax
je 0x484b2d
lea eax, [ebp - 0x9c]
mov edx, dword [ebp - 0x71]
mov ecx, 0
call fcn.0040a0a0
mov edx, dword [ebp - 0x9c]
lea eax, [ebp - 8]
call fcn.0040aa1c
jmp 0x484478
lea edx, [ebp - 0xa0]
mov eax, dword [ebp - 8]
call fcn.0045eeac
mov edx, dword [ebp - 0xa0]
lea eax, [ebp - 8]
call fcn.00409d3c
jmp 0x484478
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x24]
call fcn.00409d3c
push ebp
mov eax, dword [ebp - 8]
call fcn.00483ed4
pop ecx
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4844af
push 0
push 0
push 4
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 8]
call fcn.0040a944
push eax
call sub.kernel32.dll_CreateFileW_1
mov ebx, eax
jmp 0x4844e4
push 0
push 0
push 4
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0xa4]
mov edx, dword [ebp - 8]
mov ecx, 0
call fcn.0040a554
mov eax, dword [ebp - 0xa4]
call fcn.0040a3a8
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x484629
push 0x7fffffff
lea edx, [ebp - 0xa8]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x1f8]
mov edx, dword [ebp - 0xa8]
mov edi, dword [0x768bf8]
mov edi, dword [edi]
mov ecx, 1
mov eax, 0x484bf4
call edi
test eax, eax
jne 0x484629
push 0x484c54
lea edx, [ebp - 0xb4]
xor eax, eax
call fcn.0045edb8
mov eax, dword [ebp - 0xb4]
lea edx, [ebp - 0xb0]
call fcn.004162cc
mov eax, dword [ebp - 0xb0]
lea edx, [ebp - 0xac]
call fcn.0045ee6c
push dword [ebp - 0xac]
push 0x484bf4
lea edx, [ebp - 0xb8]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x1f8]
push dword [ebp - 0xb8]
lea eax, [ebp - 8]
mov edx, 4
call fcn.0040ac38
push 0x484c80
push 0x484ca4
push 0x484cc8
lea edx, [ebp - 8]
mov ecx, 0x484cf4
xor eax, eax
call fcn.004616fc
push 0
mov ebx, dword [0x768c40]
mov ebx, dword [ebx]
lea eax, [ebp - 8]
mov ecx, 0x484d1c
mov edx, 0x484d2c
call ebx
push ebp
mov eax, dword [ebp - 8]
call fcn.00483ed4
pop ecx
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4845f4
push 0
push 0
push 4
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 8]
call fcn.0040a944
push eax
call sub.kernel32.dll_CreateFileW_1
mov ebx, eax
jmp 0x484629
push 0
push 0
push 4
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0xbc]
mov edx, dword [ebp - 8]
mov ecx, 0
call fcn.0040a554
mov eax, dword [ebp - 0xbc]
call fcn.0040a3a8
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x484b2d
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x200]
test al, al
je 0x484aad
push 0
push ebx
call sub.kernel32.dll_GetFileSize_1
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 8]
call fcn.00409914
cmp dword [ebp - 0x2c], 0
jbe 0x48470c
lea ecx, [ebp - 8]
mov edx, 0x484d3c
mov eax, dword [ebp - 4]
call fcn.00483c90
mov eax, dword [ebp - 8]
call fcn.00409e0c
cmp eax, 0x1f
jne 0x484704
lea ecx, [ebp - 0xc0]
mov edx, 0x484d64
mov eax, dword [ebp - 4]
call fcn.00483c90
cmp dword [ebp - 0xc0], 0
je 0x4846b7
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x210]
mov byte [ebp - 0x41], al
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x220]
jmp 0x4846ce
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x218]
mov byte [ebp - 0x41], al
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x228]
cmp byte [ebp - 0x41], 0
jne 0x4846de
lea eax, [ebp - 8]
call fcn.00409914
jmp 0x48470c
sub al, 1
jb 0x4846e6
je 0x4846f5
jmp 0x48470c
lea eax, [ebp - 8]
mov edx, 9
call fcn.0040aad8
jmp 0x48470c
lea eax, [ebp - 8]
mov edx, 0x14
call fcn.0040aad8
jmp 0x48470c
lea eax, [ebp - 8]
call fcn.00409914
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x208]
test eax, eax
jbe 0x484729
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x208]
cmp eax, dword [ebp - 0x2c]
jb 0x48472d
xor eax, eax
jmp 0x48472f
mov al, 1
mov byte [ebp - 0x41], al
cmp byte [ebp - 0x41], 0
jne 0x484742
cmp dword [ebp - 8], 0
je 0x484a9f
push 0
push 0
push 0
push 4
push 0
push ebx
call sub.kernel32.dll_CreateFileMappingW
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x484a9f
push 0
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x3c]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x484a96
cmp dword [ebp - 8], 0
je 0x4849fc
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.004160a0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
push eax
push 0
mov eax, dword [ebp - 0x30]
dec eax
push eax
push 0
mov eax, dword [ebp - 0x14]
call fcn.00409e24
add eax, 2
push eax
lea eax, [ebp - 0xc4]
mov ecx, dword [ebp - 0x14]
mov edx, 0x484d90
call fcn.0040a1dc
mov eax, dword [ebp - 0xc4]
call fcn.0040a3a8
mov edi, dword [0x768a70]
mov edi, dword [edi]
mov edx, dword [ebp - 0x40]
pop ecx
call edi
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jl 0x4849f2
mov eax, dword [ebp - 0x2c]
push eax
push 0
mov eax, dword [ebp - 0x30]
push eax
push 0
mov edi, dword [0x768a70]
mov edi, dword [edi]
mov eax, 0x484d94
mov ecx, 0xb
mov edx, dword [ebp - 0x40]
call edi
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jge 0x48483f
mov eax, dword [ebp - 0x2c]
push eax
push 0
push 0
push 0
mov edi, dword [0x768a70]
mov edi, dword [edi]
mov eax, 0x484da0
mov ecx, 9
mov edx, dword [ebp - 0x40]
call edi
mov dword [ebp - 0x34], eax
jmp 0x484843
add dword [ebp - 0x34], 2
cmp dword [ebp - 0x34], 0
jl 0x4849f2
mov eax, dword [ebp - 0x2c]
push eax
push 0
mov eax, dword [ebp - 0x30]
push eax
push 0x7fffffff
mov edi, dword [0x768a70]
mov edi, dword [edi]
mov eax, 0x484d94
mov ecx, 0xb
mov edx, dword [ebp - 0x40]
call edi
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jge 0x484884
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
jmp 0x484888
add dword [ebp - 0x38], 2
push 0
mov ecx, dword [ebp - 0x38]
sub ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x40]
add edx, dword [ebp - 0x34]
lea eax, [ebp - 0x18]
call fcn.00409af0
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 0x18]
call fcn.00415e64
mov ecx, 0x484db8
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0048418c
test al, al
je 0x4849f2
mov ecx, 0x484ddc
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0048418c
test al, al
je 0x4849f2
mov ecx, 0x484d64
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0048418c
test al, al
je 0x4849f2
mov ecx, 0x484e08
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0048418c
test al, al
je 0x4849f2
lea ecx, [ebp - 0xc8]
mov edx, 0x484e08
mov eax, dword [ebp - 0xc]
call fcn.00483c90
cmp dword [ebp - 0xc8], 0
jne 0x484955
mov ecx, 0x484e24
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0048418c
test al, al
je 0x4849f2
mov ecx, 0x484e50
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0048418c
test al, al
je 0x4849f2
lea ecx, [ebp - 8]
mov edx, 0x484e80
mov eax, dword [ebp - 0xc]
call fcn.00483c90
cmp dword [ebp - 8], 0
je 0x484990
mov eax, dword [ebp - 8]
call fcn.00409e0c
push eax
mov eax, dword [ebp - 8]
call fcn.0040a944
mov edx, eax
mov edi, dword [0x768da4]
mov edi, dword [edi]
xor eax, eax
pop ecx
call edi
mov dword [ebp - 0x30], eax
jmp 0x484997
mov dword [ebp - 0x30], 1
lea eax, [ebp - 0xcc]
push eax
mov eax, dword [ebp - 0x30]
inc eax
mov cx, 0x30
mov edx, 1
call fcn.00414cf0
mov eax, dword [ebp - 0xcc]
push eax
lea eax, [ebp - 4]
mov ecx, 0x484d3c
mov edx, 0x484e80
call fcn.00484028
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x2c]
jae 0x4849e7
mov ecx, dword [ebp - 0x2c]
sub ecx, eax
mov edx, dword [ebp - 0x40]
add edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x38]
call fcn.0040690c
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x34]
sub dword [ebp - 0x2c], eax
jmp 0x4849fc
cmp dword [ebp - 0x30], 0xffffffff
jne 0x48479b
cmp byte [ebp - 0x41], 0
je 0x484a8d
push 0
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer_1
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
push eax
push 0
mov eax, dword [ebp - 0x30]
inc eax
push eax
push 0x7fffffff
mov edi, dword [0x768a70]
mov edi, dword [edi]
mov eax, 0x484d94
mov ecx, 0xb
mov edx, dword [ebp - 0x40]
call edi
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
je 0x484a6c
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x208]
mov edi, eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x208]
shr eax, 2
sub edi, eax
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x30]
cmp edi, eax
jbe 0x484a17
cmp dword [ebp - 0x30], 0xffffffff
je 0x484a8d
add dword [ebp - 0x30], 2
mov eax, dword [ebp - 0x30]
sub dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
call fcn.0040690c
mov eax, dword [ebp - 0x40]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp - 0x3c]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0
push 0
mov eax, dword [ebp - 0x2c]
push eax
push ebx
call sub.kernel32.dll_SetFilePointer_1
push dword [ebp - 4]
push 0x484e98
push 0x484e98
lea eax, [ebp - 4]
mov edx, 3
call fcn.0040ac38
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004160a0
push 0
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00409e24
push eax
mov eax, dword [ebp - 0x14]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x25], al
push ebx
call sub.kernel32.dll_SetEndOfFile_1
push ebx
call sub.kernel32.dll_CloseHandle_1
cmp dword [ebp - 0x24], 0
sete al
and al, byte [ebp + 0xc]
je 0x484b2d
lea eax, [ebp - 0x20]
call fcn.0040d514
push eax
push 0x484ea0
push esi
mov eax, dword [esi]
call dword [eax]
test eax, eax
jne 0x484b2d
mov dl, 1
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x24]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x484bd9
lea eax, [ebp - 0xcc]
mov edx, 2
call fcn.00409974
lea eax, [ebp - 0xc4]
call fcn.00409938
lea eax, [ebp - 0xc0]
call fcn.00409914
lea eax, [ebp - 0xbc]
call fcn.00409938
lea eax, [ebp - 0xb8]
mov edx, 5
call fcn.00409974
lea eax, [ebp - 0xa4]
call fcn.00409938
lea eax, [ebp - 0xa0]
call fcn.00409914
lea eax, [ebp - 0x9c]
call fcn.00409938
lea eax, [ebp - 0x98]
mov edx, 2
call fcn.00409974
lea eax, [ebp - 0x20]
call fcn.0040d514
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.004099a4
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00409974
ret