Function at 0x43d358
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 0x43d361
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.00404fcc
mov eax, dword [ebp - 8]
call fcn.00404fcc
mov eax, dword [ebp + 8]
call fcn.00406888
xor eax, eax
push ebp
push 0x43da26
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp dword [ebp - 4], 0
jne 0x43d506
lea edx, [ebp - 0x10]
mov eax, dword [ebp + 8]
call fcn.0043cd4c
cmp byte [ebp + 0xc], 0
jne 0x43d4e8
mov eax, 0xfa
call fcn.0042c778
test al, al
je 0x43d3d8
push 0
call sub.user32.dll_MessageBeep
jmp 0x43d9ce
push 0x7fffffff
mov ecx, 1
mov edx, dword [ebp - 0x10]
mov eax, 0x43da40
call fcn.00409aac
test eax, eax
jle 0x43d416
lea edx, [ebp - 0x7c]
mov eax, dword [ebp - 0x10]
call fcn.0042b5d4
mov edx, dword [ebp - 0x7c]
lea eax, [ebp - 0x10]
call fcn.00404bb4
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.0042b3e4
jmp 0x43d429
lea eax, [ebp - 0x80]
call fcn.0043d240
mov edx, dword [ebp - 0x80]
lea eax, [ebp - 0x14]
call fcn.00404da4
lea edx, [ebp - 0x84]
mov eax, dword [ebp - 0x10]
call fcn.0042b368
mov edx, dword [ebp - 0x84]
lea eax, [ebp - 0x10]
call fcn.00404bb4
lea eax, [ebp - 0x10]
mov edx, 0x43da4c
call fcn.00404de4
lea eax, [ebp - 0x10]
mov edx, 0x105
call fcn.00405168
lea eax, [ebp - 0x78]
mov edx, 0x4c
call fcn.00407f7c
mov dword [ebp - 0x78], 0x4c
mov dword [ebp - 0x74], esi
mov eax, dword [ebp - 0x14]
call fcn.00404fdc
mov dword [ebp - 0x4c], eax
mov eax, 0x43da50
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x60], 1
mov eax, dword [ebp - 0x10]
call fcn.00404fdc
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], 0x104
lea edx, [ebp - 0x18]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x254]
mov eax, dword [ebp - 0x18]
call fcn.00404fdc
mov dword [ebp - 0x48], eax
mov eax, 0x43da60
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 0x43d9ce
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x5c]
call fcn.00404d14
jmp 0x43d511
lea edx, [ebp - 0x88]
mov eax, dword [ebp - 0x10]
call fcn.0042b5d4
mov edx, dword [ebp - 0x88]
lea eax, [ebp - 0x10]
call fcn.00404bb4
jmp 0x43d511
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00404bb4
push ebp
mov eax, dword [ebp - 0x10]
call fcn.0043ce40
pop ecx
push 0
push 0
push 4
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 0x10]
call fcn.00404fdc
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x43d9ce
mov eax, dword [ebp + 8]
mov edx, dword [eax]
call dword [edx + 0x1a8]
test al, al
je 0x43d95d
push 0
push esi
call sub.kernel32.dll_GetFileSize_1
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
call fcn.00404b1c
cmp dword [ebp - 0xc], 0
jbe 0x43d61e
lea ecx, [ebp - 0x10]
mov edx, 0x43da70
mov eax, dword [ebp - 8]
call fcn.0043cf18
mov eax, dword [ebp - 0x10]
call fcn.00404ddc
cmp eax, 0x1f
jne 0x43d616
lea ecx, [ebp - 0x8c]
mov edx, 0x43da88
mov eax, dword [ebp - 8]
call fcn.0043cf18
cmp dword [ebp - 0x8c], 0
je 0x43d5ca
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 0x43d5e2
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 0x43d5f0
lea eax, [ebp - 0x10]
call fcn.00404b1c
jmp 0x43d61e
sub al, 1
jb 0x43d5f8
je 0x43d607
jmp 0x43d61e
lea eax, [ebp - 0x10]
mov edx, 9
call fcn.00405168
jmp 0x43d61e
lea eax, [ebp - 0x10]
mov edx, 0x14
call fcn.00405168
jmp 0x43d61e
lea eax, [ebp - 0x10]
call fcn.00404b1c
mov eax, dword [ebp + 8]
mov edx, dword [eax]
call dword [edx + 0x1b0]
test eax, eax
jbe 0x43d63d
mov eax, dword [ebp + 8]
mov edx, dword [eax]
call dword [edx + 0x1b0]
cmp eax, dword [ebp - 0xc]
jb 0x43d641
xor ebx, ebx
jmp 0x43d643
mov bl, 1
test bl, bl
jne 0x43d651
cmp dword [ebp - 0x10], 0
je 0x43d94f
push 0
push 0
push 0
push 4
push 0
push esi
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x43d94f
push 0
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x43d946
cmp dword [ebp - 0x10], 0
je 0x43d8c4
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
push eax
push 0
dec edi
push edi
push 0
mov eax, dword [ebp - 0x10]
call fcn.00404ddc
add eax, 2
push eax
lea eax, [ebp - 0x90]
mov ecx, dword [ebp - 0x10]
mov edx, 0x43daa0
call fcn.00404e28
mov eax, dword [ebp - 0x90]
call fcn.00404fdc
mov edx, dword [ebp - 0x28]
pop ecx
call fcn.00409b6c
mov edi, eax
test edi, edi
jl 0x43d8bb
mov eax, dword [ebp - 0xc]
push eax
push 0
push edi
push 0
mov eax, 0x43daa4
mov ecx, 0xb
mov edx, dword [ebp - 0x28]
call fcn.00409b6c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jge 0x43d728
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0
mov eax, 0x43dab0
mov ecx, 9
mov edx, dword [ebp - 0x28]
call fcn.00409b6c
mov dword [ebp - 0x1c], eax
jmp 0x43d72c
add dword [ebp - 0x1c], 2
cmp dword [ebp - 0x1c], 0
jl 0x43d8bb
mov eax, dword [ebp - 0xc]
push eax
push 0
push edi
push 0x7fffffff
mov eax, 0x43daa4
mov ecx, 0xb
mov edx, dword [ebp - 0x28]
call fcn.00409b6c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x43d765
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
jmp 0x43d769
add dword [ebp - 0x20], 2
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x28]
add edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
call fcn.00404c0c
mov ecx, 0x43dac4
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
call fcn.0043d1ac
test al, al
je 0x43d8bb
mov ecx, 0x43dad8
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
call fcn.0043d1ac
test al, al
je 0x43d8bb
mov ecx, 0x43da88
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
call fcn.0043d1ac
test al, al
je 0x43d8bb
mov ecx, 0x43daf0
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
call fcn.0043d1ac
test al, al
je 0x43d8bb
lea ecx, [ebp - 0x94]
mov edx, 0x43daf0
mov eax, dword [ebp - 0x14]
call fcn.0043cf18
cmp dword [ebp - 0x94], 0
jne 0x43d829
mov ecx, 0x43db00
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
call fcn.0043d1ac
test al, al
je 0x43d8bb
mov ecx, 0x43db18
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
call fcn.0043d1ac
test al, al
je 0x43d8bb
lea ecx, [ebp - 0x10]
mov edx, 0x43db34
mov eax, dword [ebp - 0x14]
call fcn.0043cf18
cmp dword [ebp - 0x10], 0
je 0x43d85e
mov eax, dword [ebp - 0x10]
call fcn.00404ddc
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404fdc
mov edx, eax
xor eax, eax
pop ecx
call fcn.0040a62c
mov edi, eax
jmp 0x43d863
mov edi, 1
lea eax, [ebp - 0x98]
push eax
lea eax, [edi + 1]
mov cl, 0x30
mov edx, 1
call fcn.0040a35c
mov eax, dword [ebp - 0x98]
push eax
lea eax, [ebp - 8]
mov ecx, 0x43da70
mov edx, 0x43db34
call fcn.0043d04c
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0xc]
jae 0x43d8b0
mov ecx, dword [ebp - 0xc]
sub ecx, eax
mov edx, dword [ebp - 0x28]
add edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x20]
call fcn.00402d24
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x1c]
sub dword [ebp - 0xc], eax
jmp 0x43d8c4
cmp edi, 0xffffffff
jne 0x43d69c
test bl, bl
je 0x43d93d
push 0
push 0
push 0
push esi
call sub.kernel32.dll_SetFilePointer_1
xor edi, edi
mov eax, dword [ebp - 0xc]
push eax
push 0
inc edi
push edi
push 0x7fffffff
mov eax, 0x43daa4
mov ecx, 0xb
mov edx, dword [ebp - 0x28]
call fcn.00409b6c
mov edi, eax
cmp edi, 0xffffffff
je 0x43d922
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 - 0xc]
sub eax, edi
cmp ebx, eax
jbe 0x43d8d6
cmp edi, 0xffffffff
je 0x43d93d
add edi, 2
sub dword [ebp - 0xc], edi
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
add eax, edi
mov ecx, dword [ebp - 0xc]
call fcn.00402d24
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
push esi
call sub.kernel32.dll_SetFilePointer_1
push dword [ebp - 8]
push 0x43db44
push 0x43db44
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404e9c
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404ddc
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 0x43d9cc
lea eax, [ebp - 0x2c]
call fcn.00406814
push eax
push 0x43db48
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax]
test eax, eax
jne 0x43d9cc
mov dl, 1
mov eax, dword [ebp - 0x2c]
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 0x43da2d
lea eax, [ebp - 0x98]
mov edx, 6
call fcn.00404b40
lea eax, [ebp - 0x80]
call fcn.00405264
lea eax, [ebp - 0x7c]
call fcn.00404b1c
lea eax, [ebp - 0x2c]
call fcn.00406814
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404b40
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404b40
lea eax, [ebp + 8]
call fcn.00406814
ret