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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x14
push 0
push 0
dec ecx
jne 0x443a79
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.00405ed4
mov eax, dword [ebp - 8]
call fcn.00405ed4
mov eax, dword [ebp + 8]
call fcn.00408788
xor eax, eax
push ebp
push 0x444179
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp dword [ebp - 4], 0
jne 0x443c3e
lea edx, [ebp - 0xc]
mov eax, dword [ebp + 8]
call fcn.004433f8
cmp byte [ebp + 0xc], 0
jne 0x443c20
mov eax, 0xfa
call fcn.00431778
test al, al
je 0x443aef
push 0
call sub.user32.dll_MessageBeep
jmp 0x444128
push 0x7fffffff
mov ecx, 1
mov edx, dword [ebp - 0xc]
mov eax, 0x444198
call fcn.0040c484
test eax, eax
jle 0x443b33
lea edx, [ebp - 0x88]
mov eax, dword [ebp - 0xc]
call fcn.0043053c
mov edx, dword [ebp - 0x88]
lea eax, [ebp - 0xc]
call fcn.004058d8
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.0043033c
jmp 0x443b51
lea eax, [ebp - 0x8c]
call fcn.00443934
mov edx, dword [ebp - 0x8c]
lea eax, [ebp - 0x10]
mov ecx, 0
call fcn.004068d4
lea edx, [ebp - 0x90]
mov eax, dword [ebp - 0xc]
call fcn.004302c0
mov edx, dword [ebp - 0x90]
lea eax, [ebp - 0xc]
call fcn.004058d8
lea eax, [ebp - 0xc]
mov edx, 0x4441a8
call fcn.00405bf0
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, 0x105
call fcn.004061c8
lea eax, [ebp - 0x84]
mov edx, 0x58
call fcn.0040a358
mov dword [ebp - 0x84], 0x58
mov dword [ebp - 0x80], esi
mov eax, dword [ebp - 0x10]
call fcn.00405ee4
mov dword [ebp - 0x58], eax
mov eax, 0x4441ac
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x6c], 1
mov eax, dword [ebp - 0xc]
call fcn.00405ee4
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], 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.00405ee4
mov dword [ebp - 0x54], eax
mov eax, 0x4441bc
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x50], 0x8004
lea eax, [ebp - 0x84]
push eax
call sub.comdlg32.dll_GetSaveFileNameA
test eax, eax
je 0x444128
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x68]
mov ecx, 0
call fcn.00405adc
jmp 0x443c49
lea edx, [ebp - 0x94]
mov eax, dword [ebp - 0xc]
call fcn.0043053c
mov edx, dword [ebp - 0x94]
lea eax, [ebp - 0xc]
call fcn.004058d8
jmp 0x443c49
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004058d8
push ebp
mov eax, dword [ebp - 0xc]
call fcn.004434f4
pop ecx
push 0
push 0
push 4
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 0xc]
call fcn.00405ee4
push eax
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x444128
mov eax, dword [ebp + 8]
mov edx, dword [eax]
call dword [edx + 0x1a8]
test al, al
je 0x4440b0
push 0
push esi
call sub.KERNEL32.DLL_GetFileSize
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xc]
call fcn.00405828
cmp dword [ebp - 0x1c], 0
jbe 0x443d61
lea ecx, [ebp - 0xc]
mov edx, 0x4441d0
mov eax, dword [ebp - 8]
call fcn.004435d8
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00405a38
call fcn.00405bbc
cmp eax, 0x1f
jne 0x443d59
lea ecx, [ebp - 0x98]
mov edx, 0x4441ec
mov eax, dword [ebp - 8]
call fcn.004435d8
cmp dword [ebp - 0x98], 0
je 0x443d09
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 0x443d21
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 0x443d2f
lea eax, [ebp - 0xc]
call fcn.00405828
jmp 0x443d61
sub al, 1
jb 0x443d37
je 0x443d48
jmp 0x443d61
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, 9
call fcn.004061c8
jmp 0x443d61
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, 0x14
call fcn.004061c8
jmp 0x443d61
lea eax, [ebp - 0xc]
call fcn.00405828
mov eax, dword [ebp + 8]
mov edx, dword [eax]
call dword [edx + 0x1b0]
test eax, eax
jbe 0x443d80
mov eax, dword [ebp + 8]
mov edx, dword [eax]
call dword [edx + 0x1b0]
cmp eax, dword [ebp - 0x1c]
jb 0x443d84
xor ebx, ebx
jmp 0x443d86
mov bl, 1
test bl, bl
jne 0x443d94
cmp dword [ebp - 0xc], 0
je 0x4440a2
push 0
push 0
push 0
push 4
push 0
push esi
call sub.KERNEL32.DLL_CreateFileMappingW
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x4440a2
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 0x444099
cmp dword [ebp - 0xc], 0
je 0x444017
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
push eax
push 0
dec edi
push edi
push 0
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00405a38
call fcn.00405bbc
add eax, 2
push eax
lea eax, [ebp - 0x9c]
mov ecx, dword [ebp - 0xc]
mov edx, 0x444208
call fcn.00405c6c
mov eax, dword [ebp - 0x9c]
call fcn.00405ee4
mov edx, dword [ebp - 0x2c]
pop ecx
call fcn.0040c674
mov edi, eax
test edi, edi
jl 0x44400e
mov eax, dword [ebp - 0x1c]
push eax
push 0
push edi
push 0
mov eax, 0x44420c
mov ecx, 0xb
mov edx, dword [ebp - 0x2c]
call fcn.0040c674
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x443e72
mov eax, dword [ebp - 0x1c]
push eax
push 0
push 0
push 0
mov eax, 0x444218
mov ecx, 9
mov edx, dword [ebp - 0x2c]
call fcn.0040c674
mov dword [ebp - 0x20], eax
jmp 0x443e76
add dword [ebp - 0x20], 2
cmp dword [ebp - 0x20], 0
jl 0x44400e
mov eax, dword [ebp - 0x1c]
push eax
push 0
push edi
push 0x7fffffff
mov eax, 0x44420c
mov ecx, 0xb
mov edx, dword [ebp - 0x2c]
call fcn.0040c674
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jge 0x443eaf
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
jmp 0x443eb3
add dword [ebp - 0x24], 2
push 0
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.00405960
mov ecx, 0x444230
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.004438a0
test al, al
je 0x44400e
mov ecx, 0x444248
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.004438a0
test al, al
je 0x44400e
mov ecx, 0x4441ec
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.004438a0
test al, al
je 0x44400e
mov ecx, 0x444264
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.004438a0
test al, al
je 0x44400e
lea ecx, [ebp - 0xa0]
mov edx, 0x444264
mov eax, dword [ebp - 0x10]
call fcn.004435d8
cmp dword [ebp - 0xa0], 0
jne 0x443f75
mov ecx, 0x444278
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.004438a0
test al, al
je 0x44400e
mov ecx, 0x444294
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.004438a0
test al, al
je 0x44400e
lea ecx, [ebp - 0xc]
mov edx, 0x4442b4
mov eax, dword [ebp - 0x10]
call fcn.004435d8
cmp dword [ebp - 0xc], 0
je 0x443fb1
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00405a38
call fcn.00405bbc
push eax
mov eax, dword [ebp - 0xc]
call fcn.00405ee4
mov edx, eax
xor eax, eax
pop ecx
call fcn.0040db00
mov edi, eax
jmp 0x443fb6
mov edi, 1
lea eax, [ebp - 0xa4]
push eax
lea eax, [edi + 1]
mov cl, 0x30
mov edx, 1
call fcn.0040d7a4
mov eax, dword [ebp - 0xa4]
push eax
lea eax, [ebp - 8]
mov ecx, 0x4441d0
mov edx, 0x4442b4
call fcn.00443724
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x1c]
jae 0x444003
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.00403290
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x20]
sub dword [ebp - 0x1c], eax
jmp 0x444017
cmp edi, 0xffffffff
jne 0x443ddf
test bl, bl
je 0x444090
push 0
push 0
push 0
push esi
call sub.KERNEL32.DLL_SetFilePointer
xor edi, edi
mov eax, dword [ebp - 0x1c]
push eax
push 0
inc edi
push edi
push 0x7fffffff
mov eax, 0x44420c
mov ecx, 0xb
mov edx, dword [ebp - 0x2c]
call fcn.0040c674
mov edi, eax
cmp edi, 0xffffffff
je 0x444075
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 0x444029
cmp edi, 0xffffffff
je 0x444090
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.00403290
mov eax, dword [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_UnmapViewOfFile
mov eax, dword [ebp - 0x28]
push eax
call sub.KERNEL32.DLL_CloseHandle
push 0
push 0
mov eax, dword [ebp - 0x1c]
push eax
push esi
call sub.KERNEL32.DLL_SetFilePointer
push dword [ebp - 8]
push 0x4442c8
push 0x4442c8
lea eax, [ebp - 8]
mov edx, 3
call fcn.00405d38
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
xor edx, edx
call fcn.00405a38
call fcn.00405bbc
push eax
mov eax, dword [ebp - 8]
push eax
push esi
call sub.KERNEL32.DLL_WriteFile
push esi
call sub.KERNEL32.DLL_SetEndOfFile
push esi
call sub.KERNEL32.DLL_CloseHandle
cmp dword [ebp - 4], 0
sete al
and al, byte [ebp + 0xc]
je 0x444126
lea eax, [ebp - 0x18]
call fcn.00408714
push eax
push 0x4442cc
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax]
test eax, eax
jne 0x444126
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 0x444180
lea eax, [ebp - 0xa4]
mov edx, 6
call fcn.0040584c
lea eax, [ebp - 0x8c]
call fcn.00406680
lea eax, [ebp - 0x88]
call fcn.00405828
lea eax, [ebp - 0x18]
call fcn.00408714
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.0040584c
lea eax, [ebp + 8]
call fcn.00408714
ret