Function at 0x43f0c8
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 0x43f0d1
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.004057a0
mov eax, dword [ebp - 8]
call fcn.004057a0
mov eax, dword [ebp + 8]
call fcn.00407478
xor eax, eax
push ebp
push 0x43f789
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp dword [ebp - 4], 0
jne 0x43f276
lea edx, [ebp - 0xc]
mov eax, dword [ebp + 8]
call fcn.0043eabc
cmp byte [ebp + 0xc], 0
jne 0x43f258
mov eax, 0xfa
call fcn.0042da04
test al, al
je 0x43f148
push 0
call sub.user32.dll_MessageBeep
jmp 0x43f73e
push 0x7fffffff
mov ecx, 1
mov edx, dword [ebp - 0xc]
mov eax, 0x43f7a4
call fcn.00411710
test eax, eax
jle 0x43f186
lea edx, [ebp - 0x7c]
mov eax, dword [ebp - 0xc]
call fcn.0042c83c
mov edx, dword [ebp - 0x7c]
lea eax, [ebp - 0xc]
call fcn.004053b8
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.0042c64c
jmp 0x43f199
lea eax, [ebp - 0x80]
call fcn.0043efb0
mov edx, dword [ebp - 0x80]
lea eax, [ebp - 0x10]
call fcn.004055a8
lea edx, [ebp - 0x84]
mov eax, dword [ebp - 0xc]
call fcn.0042c5d0
mov edx, dword [ebp - 0x84]
lea eax, [ebp - 0xc]
call fcn.004053b8
lea eax, [ebp - 0xc]
mov edx, 0x43f7b0
call fcn.004055ec
lea eax, [ebp - 0xc]
mov edx, 0x105
call fcn.00405a40
lea eax, [ebp - 0x78]
mov edx, 0x4c
call fcn.00408b24
mov dword [ebp - 0x78], 0x4c
mov dword [ebp - 0x74], esi
mov eax, dword [ebp - 0x10]
call fcn.004057b0
mov dword [ebp - 0x4c], eax
mov eax, 0x43f7b4
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x60], 1
mov eax, dword [ebp - 0xc]
call fcn.004057b0
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.004057b0
mov dword [ebp - 0x48], eax
mov eax, 0x43f7c4
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 0x43f73e
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x5c]
call fcn.00405518
jmp 0x43f281
lea edx, [ebp - 0x88]
mov eax, dword [ebp - 0xc]
call fcn.0042c83c
mov edx, dword [ebp - 0x88]
lea eax, [ebp - 0xc]
call fcn.004053b8
jmp 0x43f281
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004053b8
push ebp
mov eax, dword [ebp - 0xc]
call fcn.0043ebb0
pop ecx
push 0
push 0
push 4
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 0xc]
call fcn.004057b0
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x43f73e
mov eax, dword [ebp + 8]
mov edx, dword [eax]
call dword [edx + 0x1a8]
test al, al
je 0x43f6cd
push 0
push esi
call sub.kernel32.dll_GetFileSize_1
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xc]
call fcn.00405320
cmp dword [ebp - 0x1c], 0
jbe 0x43f38e
lea ecx, [ebp - 0xc]
mov edx, 0x43f7d4
mov eax, dword [ebp - 8]
call fcn.0043ec88
mov eax, dword [ebp - 0xc]
call fcn.004055e0
cmp eax, 0x1f
jne 0x43f386
lea ecx, [ebp - 0x8c]
mov edx, 0x43f7ec
mov eax, dword [ebp - 8]
call fcn.0043ec88
cmp dword [ebp - 0x8c], 0
je 0x43f33a
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 0x43f352
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 0x43f360
lea eax, [ebp - 0xc]
call fcn.00405320
jmp 0x43f38e
sub al, 1
jb 0x43f368
je 0x43f377
jmp 0x43f38e
lea eax, [ebp - 0xc]
mov edx, 9
call fcn.00405a40
jmp 0x43f38e
lea eax, [ebp - 0xc]
mov edx, 0x14
call fcn.00405a40
jmp 0x43f38e
lea eax, [ebp - 0xc]
call fcn.00405320
mov eax, dword [ebp + 8]
mov edx, dword [eax]
call dword [edx + 0x1b0]
test eax, eax
jbe 0x43f3ad
mov eax, dword [ebp + 8]
mov edx, dword [eax]
call dword [edx + 0x1b0]
cmp eax, dword [ebp - 0x1c]
jb 0x43f3b1
xor ebx, ebx
jmp 0x43f3b3
mov bl, 1
test bl, bl
jne 0x43f3c1
cmp dword [ebp - 0xc], 0
je 0x43f6bf
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 0x43f6bf
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 0x43f6b6
cmp dword [ebp - 0xc], 0
je 0x43f634
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.004055e0
add eax, 2
push eax
lea eax, [ebp - 0x90]
mov ecx, dword [ebp - 0xc]
mov edx, 0x43f804
call fcn.00405638
mov eax, dword [ebp - 0x90]
call fcn.004057b0
mov edx, dword [ebp - 0x2c]
pop ecx
call fcn.004117f0
mov edi, eax
test edi, edi
jl 0x43f62b
mov eax, dword [ebp - 0x1c]
push eax
push 0
push edi
push 0
mov eax, 0x43f808
mov ecx, 0xb
mov edx, dword [ebp - 0x2c]
call fcn.004117f0
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x43f498
mov eax, dword [ebp - 0x1c]
push eax
push 0
push 0
push 0
mov eax, 0x43f814
mov ecx, 9
mov edx, dword [ebp - 0x2c]
call fcn.004117f0
mov dword [ebp - 0x20], eax
jmp 0x43f49c
add dword [ebp - 0x20], 2
cmp dword [ebp - 0x20], 0
jl 0x43f62b
mov eax, dword [ebp - 0x1c]
push eax
push 0
push edi
push 0x7fffffff
mov eax, 0x43f808
mov ecx, 0xb
mov edx, dword [ebp - 0x2c]
call fcn.004117f0
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jge 0x43f4d5
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
jmp 0x43f4d9
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.00405410
mov ecx, 0x43f828
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.0043ef1c
test al, al
je 0x43f62b
mov ecx, 0x43f83c
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.0043ef1c
test al, al
je 0x43f62b
mov ecx, 0x43f7ec
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.0043ef1c
test al, al
je 0x43f62b
mov ecx, 0x43f854
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.0043ef1c
test al, al
je 0x43f62b
lea ecx, [ebp - 0x94]
mov edx, 0x43f854
mov eax, dword [ebp - 0x10]
call fcn.0043ec88
cmp dword [ebp - 0x94], 0
jne 0x43f599
mov ecx, 0x43f864
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.0043ef1c
test al, al
je 0x43f62b
mov ecx, 0x43f87c
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.0043ef1c
test al, al
je 0x43f62b
lea ecx, [ebp - 0xc]
mov edx, 0x43f898
mov eax, dword [ebp - 0x10]
call fcn.0043ec88
cmp dword [ebp - 0xc], 0
je 0x43f5ce
mov eax, dword [ebp - 0xc]
call fcn.004055e0
push eax
mov eax, dword [ebp - 0xc]
call fcn.004057b0
mov edx, eax
xor eax, eax
pop ecx
call fcn.00412368
mov edi, eax
jmp 0x43f5d3
mov edi, 1
lea eax, [ebp - 0x98]
push eax
lea eax, [edi + 1]
mov cl, 0x30
mov edx, 1
call fcn.00412024
mov eax, dword [ebp - 0x98]
push eax
lea eax, [ebp - 8]
mov ecx, 0x43f7d4
mov edx, 0x43f898
call fcn.0043edbc
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x1c]
jae 0x43f620
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.004031a0
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x20]
sub dword [ebp - 0x1c], eax
jmp 0x43f634
cmp edi, 0xffffffff
jne 0x43f40c
test bl, bl
je 0x43f6ad
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, 0x43f808
mov ecx, 0xb
mov edx, dword [ebp - 0x2c]
call fcn.004117f0
mov edi, eax
cmp edi, 0xffffffff
je 0x43f692
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 0x43f646
cmp edi, 0xffffffff
je 0x43f6ad
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.004031a0
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 0x43f8a8
push 0x43f8a8
lea eax, [ebp - 8]
mov edx, 3
call fcn.004056b4
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 8]
call fcn.004055e0
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 0x43f73c
lea eax, [ebp - 0x18]
call fcn.00407404
push eax
push 0x43f8ac
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax]
test eax, eax
jne 0x43f73c
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 0x43f790
lea eax, [ebp - 0x98]
mov edx, 6
call fcn.00405344
lea eax, [ebp - 0x80]
call fcn.00405b28
lea eax, [ebp - 0x7c]
call fcn.00405320
lea eax, [ebp - 0x18]
call fcn.00407404
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00405344
lea eax, [ebp + 8]
call fcn.00407404
ret