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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x12
push 0
push 0
dec ecx
jne 0x43f669
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405a28
mov eax, dword [ebp - 8]
call fcn.00405a28
mov eax, dword [ebp + 8]
call fcn.004078a8
xor eax, eax
push ebp
push 0x43fd21
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp dword [ebp - 4], 0
jne 0x43f80e
lea edx, [ebp - 0xc]
mov eax, dword [ebp + 8]
call fcn.0043f054
cmp byte [ebp + 0xc], 0
jne 0x43f7f0
mov eax, 0xfa
call fcn.0042df9c
test al, al
je 0x43f6e0
push 0
call sub.user32.dll_MessageBeep
jmp 0x43fcd6
push 0x7fffffff
mov ecx, 1
mov edx, dword [ebp - 0xc]
mov eax, 0x43fd3c
call fcn.00411c68
test eax, eax
jle 0x43f71e
lea edx, [ebp - 0x7c]
mov eax, dword [ebp - 0xc]
call fcn.0042cdd4
mov edx, dword [ebp - 0x7c]
lea eax, [ebp - 0xc]
call fcn.00405640
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.0042cbe4
jmp 0x43f731
lea eax, [ebp - 0x80]
call fcn.0043f548
mov edx, dword [ebp - 0x80]
lea eax, [ebp - 0x10]
call fcn.00405830
lea edx, [ebp - 0x84]
mov eax, dword [ebp - 0xc]
call fcn.0042cb68
mov edx, dword [ebp - 0x84]
lea eax, [ebp - 0xc]
call fcn.00405640
lea eax, [ebp - 0xc]
mov edx, 0x43fd48
call fcn.00405874
lea eax, [ebp - 0xc]
mov edx, 0x105
call fcn.00405cc8
lea eax, [ebp - 0x78]
mov edx, 0x4c
call fcn.0040907c
mov dword [ebp - 0x78], 0x4c
mov dword [ebp - 0x74], esi
mov eax, dword [ebp - 0x10]
call fcn.00405a38
mov dword [ebp - 0x4c], eax
mov eax, 0x43fd4c
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x60], 1
mov eax, dword [ebp - 0xc]
call fcn.00405a38
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], 0x104
lea edx, [ebp - 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x254]
mov eax, dword [ebp - 0x14]
call fcn.00405a38
mov dword [ebp - 0x48], eax
mov eax, 0x43fd5c
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x44], 0x8004
lea eax, [ebp - 0x78]
push eax
call sub.comdlg32.dll_GetSaveFileNameA
test eax, eax
je 0x43fcd6
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x5c]
call fcn.004057a0
jmp 0x43f819
lea edx, [ebp - 0x88]
mov eax, dword [ebp - 0xc]
call fcn.0042cdd4
mov edx, dword [ebp - 0x88]
lea eax, [ebp - 0xc]
call fcn.00405640
jmp 0x43f819
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00405640
push ebp
mov eax, dword [ebp - 0xc]
call fcn.0043f148
pop ecx
push 0
push 0
push 4
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 0xc]
call fcn.00405a38
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x43fcd6
mov eax, dword [ebp + 8]
mov edx, dword [eax]
call dword [edx + 0x1a8]
test al, al
je 0x43fc65
push 0
push esi
call sub.kernel32.dll_GetFileSize_1
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xc]
call fcn.004055a8
cmp dword [ebp - 0x1c], 0
jbe 0x43f926
lea ecx, [ebp - 0xc]
mov edx, 0x43fd6c
mov eax, dword [ebp - 8]
call fcn.0043f220
mov eax, dword [ebp - 0xc]
call fcn.00405868
cmp eax, 0x1f
jne 0x43f91e
lea ecx, [ebp - 0x8c]
mov edx, 0x43fd84
mov eax, dword [ebp - 8]
call fcn.0043f220
cmp dword [ebp - 0x8c], 0
je 0x43f8d2
mov eax, dword [ebp + 8]
mov edx, dword [eax]
call dword [edx + 0x1b8]
mov ebx, eax
mov eax, dword [ebp + 8]
mov edx, dword [eax]
call dword [edx + 0x1c8]
jmp 0x43f8ea
mov eax, dword [ebp + 8]
mov edx, dword [eax]
call dword [edx + 0x1c0]
mov ebx, eax
mov eax, dword [ebp + 8]
mov edx, dword [eax]
call dword [edx + 0x1d0]
test bl, bl
jne 0x43f8f8
lea eax, [ebp - 0xc]
call fcn.004055a8
jmp 0x43f926
sub al, 1
jb 0x43f900
je 0x43f90f
jmp 0x43f926
lea eax, [ebp - 0xc]
mov edx, 9
call fcn.00405cc8
jmp 0x43f926
lea eax, [ebp - 0xc]
mov edx, 0x14
call fcn.00405cc8
jmp 0x43f926
lea eax, [ebp - 0xc]
call fcn.004055a8
mov eax, dword [ebp + 8]
mov edx, dword [eax]
call dword [edx + 0x1b0]
test eax, eax
jbe 0x43f945
mov eax, dword [ebp + 8]
mov edx, dword [eax]
call dword [edx + 0x1b0]
cmp eax, dword [ebp - 0x1c]
jb 0x43f949
xor ebx, ebx
jmp 0x43f94b
mov bl, 1
test bl, bl
jne 0x43f959
cmp dword [ebp - 0xc], 0
je 0x43fc57
push 0
push 0
push 0
push 4
push 0
push esi
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x43fc57
push 0
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x43fc4e
cmp dword [ebp - 0xc], 0
je 0x43fbcc
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
push eax
push 0
dec edi
push edi
push 0
mov eax, dword [ebp - 0xc]
call fcn.00405868
add eax, 2
push eax
lea eax, [ebp - 0x90]
mov ecx, dword [ebp - 0xc]
mov edx, 0x43fd9c
call fcn.004058c0
mov eax, dword [ebp - 0x90]
call fcn.00405a38
mov edx, dword [ebp - 0x2c]
pop ecx
call fcn.00411d48
mov edi, eax
test edi, edi
jl 0x43fbc3
mov eax, dword [ebp - 0x1c]
push eax
push 0
push edi
push 0
mov eax, 0x43fda0
mov ecx, 0xb
mov edx, dword [ebp - 0x2c]
call fcn.00411d48
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x43fa30
mov eax, dword [ebp - 0x1c]
push eax
push 0
push 0
push 0
mov eax, 0x43fdac
mov ecx, 9
mov edx, dword [ebp - 0x2c]
call fcn.00411d48
mov dword [ebp - 0x20], eax
jmp 0x43fa34
add dword [ebp - 0x20], 2
cmp dword [ebp - 0x20], 0
jl 0x43fbc3
mov eax, dword [ebp - 0x1c]
push eax
push 0
push edi
push 0x7fffffff
mov eax, 0x43fda0
mov ecx, 0xb
mov edx, dword [ebp - 0x2c]
call fcn.00411d48
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jge 0x43fa6d
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
jmp 0x43fa71
add dword [ebp - 0x24], 2
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x2c]
add edx, dword [ebp - 0x20]
lea eax, [ebp - 0x10]
call fcn.00405698
mov ecx, 0x43fdc0
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.0043f4b4
test al, al
je 0x43fbc3
mov ecx, 0x43fdd4
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.0043f4b4
test al, al
je 0x43fbc3
mov ecx, 0x43fd84
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.0043f4b4
test al, al
je 0x43fbc3
mov ecx, 0x43fdec
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.0043f4b4
test al, al
je 0x43fbc3
lea ecx, [ebp - 0x94]
mov edx, 0x43fdec
mov eax, dword [ebp - 0x10]
call fcn.0043f220
cmp dword [ebp - 0x94], 0
jne 0x43fb31
mov ecx, 0x43fdfc
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.0043f4b4
test al, al
je 0x43fbc3
mov ecx, 0x43fe14
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.0043f4b4
test al, al
je 0x43fbc3
lea ecx, [ebp - 0xc]
mov edx, 0x43fe30
mov eax, dword [ebp - 0x10]
call fcn.0043f220
cmp dword [ebp - 0xc], 0
je 0x43fb66
mov eax, dword [ebp - 0xc]
call fcn.00405868
push eax
mov eax, dword [ebp - 0xc]
call fcn.00405a38
mov edx, eax
xor eax, eax
pop ecx
call fcn.004128c0
mov edi, eax
jmp 0x43fb6b
mov edi, 1
lea eax, [ebp - 0x98]
push eax
lea eax, [edi + 1]
mov cl, 0x30
mov edx, 1
call fcn.0041257c
mov eax, dword [ebp - 0x98]
push eax
lea eax, [ebp - 8]
mov ecx, 0x43fd6c
mov edx, 0x43fe30
call fcn.0043f354
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x1c]
jae 0x43fbb8
mov ecx, dword [ebp - 0x1c]
sub ecx, eax
mov edx, dword [ebp - 0x2c]
add edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x24]
call fcn.00403304
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x20]
sub dword [ebp - 0x1c], eax
jmp 0x43fbcc
cmp edi, 0xffffffff
jne 0x43f9a4
test bl, bl
je 0x43fc45
push 0
push 0
push 0
push esi
call sub.kernel32.dll_SetFilePointer_1
xor edi, edi
mov eax, dword [ebp - 0x1c]
push eax
push 0
inc edi
push edi
push 0x7fffffff
mov eax, 0x43fda0
mov ecx, 0xb
mov edx, dword [ebp - 0x2c]
call fcn.00411d48
mov edi, eax
cmp edi, 0xffffffff
je 0x43fc2a
mov eax, dword [ebp + 8]
mov edx, dword [eax]
call dword [edx + 0x1b0]
mov ebx, eax
mov eax, dword [ebp + 8]
mov edx, dword [eax]
call dword [edx + 0x1b0]
shr eax, 2
sub ebx, eax
mov eax, dword [ebp - 0x1c]
sub eax, edi
cmp ebx, eax
jbe 0x43fbde
cmp edi, 0xffffffff
je 0x43fc45
add edi, 2
sub dword [ebp - 0x1c], edi
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
add eax, edi
mov ecx, dword [ebp - 0x1c]
call fcn.00403304
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0
push 0
mov eax, dword [ebp - 0x1c]
push eax
push esi
call sub.kernel32.dll_SetFilePointer_1
push dword [ebp - 8]
push 0x43fe40
push 0x43fe40
lea eax, [ebp - 8]
mov edx, 3
call fcn.0040593c
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 8]
call fcn.00405868
push eax
mov eax, dword [ebp - 8]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
push esi
call sub.kernel32.dll_SetEndOfFile_1
push esi
call sub.kernel32.dll_CloseHandle_1
cmp dword [ebp - 4], 0
sete al
and al, byte [ebp + 0xc]
je 0x43fcd4
lea eax, [ebp - 0x18]
call fcn.00407834
push eax
push 0x43fe44
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax]
test eax, eax
jne 0x43fcd4
mov dl, 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43fd28
lea eax, [ebp - 0x98]
mov edx, 6
call fcn.004055cc
lea eax, [ebp - 0x80]
call fcn.00405db0
lea eax, [ebp - 0x7c]
call fcn.004055a8
lea eax, [ebp - 0x18]
call fcn.00407834
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.004055cc
lea eax, [ebp + 8]
call fcn.00407834
ret