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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff84
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x2c], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004039c4
mov eax, dword [ebp - 8]
call fcn.004039c4
mov eax, dword [ebp + 8]
call fcn.00404960
xor eax, eax
push ebp
push 0x4395fb
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp dword [ebp - 4], 0
jne 0x439115
lea edx, [ebp - 0x10]
mov eax, dword [ebp + 8]
call fcn.00438ab0
mov eax, dword [ebp - 0x10]
call fcn.00403810
cmp eax, 2
jle 0x439029
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0x5c
je 0x439120
mov eax, dword [ebp - 0x10]
cmp byte [eax + 1], 0x3a
je 0x439120
lea edx, [ebp - 0x7c]
xor eax, eax
call fcn.00427df4
mov eax, dword [ebp - 0x7c]
lea edx, [ebp - 0x14]
call fcn.00427e9c
cmp byte [ebp + 0xc], 0
jne 0x439105
mov eax, 0xfa
call fcn.00428e44
test al, al
je 0x439062
push 0
call sub.user32.dll_MessageBeep
jmp 0x4395bb
lea eax, [ebp - 0x10]
mov edx, 0x439618
call fcn.00403818
lea eax, [ebp - 0x10]
mov edx, 0x105
call fcn.00403b40
lea eax, [ebp - 0x78]
mov edx, 0x4c
call fcn.00405b9c
mov dword [ebp - 0x78], 0x4c
mov dword [ebp - 0x74], esi
mov eax, dword [ebp - 0x14]
call fcn.004039d4
mov dword [ebp - 0x4c], eax
mov eax, 0x43961c
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x60], 1
mov eax, dword [ebp - 0x10]
call fcn.004039d4
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.004039d4
mov dword [ebp - 0x48], eax
mov eax, 0x43962c
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 0x4395bb
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x5c]
call fcn.004037a8
jmp 0x439120
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
call fcn.0040385c
jmp 0x439120
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.0040368c
push ebp
mov eax, dword [ebp - 0x10]
call fcn.00438ba4
pop ecx
push 0
push 0
push 4
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 0x10]
call fcn.004039d4
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x4395bb
mov eax, dword [ebp + 8]
mov edx, dword [eax]
call dword [edx + 0x1a8]
test al, al
je 0x439550
push 0
push esi
call sub.kernel32.dll_GetFileSize_1
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
call fcn.004035f4
cmp dword [ebp - 0xc], 0
jbe 0x439223
lea ecx, [ebp - 0x10]
mov edx, 0x43963c
mov eax, dword [ebp - 8]
call fcn.00438c7c
mov eax, dword [ebp - 0x10]
call fcn.00403810
cmp eax, 0x1f
jne 0x43921b
lea ecx, [ebp - 0x7c]
mov edx, 0x439654
mov eax, dword [ebp - 8]
call fcn.00438c7c
cmp dword [ebp - 0x7c], 0
je 0x4391cf
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 0x4391e7
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 0x4391f5
lea eax, [ebp - 0x10]
call fcn.004035f4
jmp 0x439223
sub al, 1
jb 0x4391fd
je 0x43920c
jmp 0x439223
lea eax, [ebp - 0x10]
mov edx, 9
call fcn.00403b40
jmp 0x439223
lea eax, [ebp - 0x10]
mov edx, 0x14
call fcn.00403b40
jmp 0x439223
lea eax, [ebp - 0x10]
call fcn.004035f4
mov eax, dword [ebp + 8]
mov edx, dword [eax]
call dword [edx + 0x1b0]
test eax, eax
jbe 0x439242
mov eax, dword [ebp + 8]
mov edx, dword [eax]
call dword [edx + 0x1b0]
cmp eax, dword [ebp - 0xc]
jb 0x439246
xor ebx, ebx
jmp 0x439248
mov bl, 1
test bl, bl
jne 0x439256
cmp dword [ebp - 0x10], 0
je 0x439542
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 0x439542
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 0x439539
cmp dword [ebp - 0x10], 0
je 0x4394b7
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.00403810
add eax, 2
push eax
lea eax, [ebp - 0x7c]
mov ecx, dword [ebp - 0x10]
mov edx, 0x43966c
call fcn.0040385c
mov eax, dword [ebp - 0x7c]
call fcn.004039d4
mov edx, dword [ebp - 0x28]
pop ecx
call fcn.00407508
mov edi, eax
test edi, edi
jl 0x4394ae
mov eax, dword [ebp - 0xc]
push eax
push 0
push edi
push 0
mov eax, 0x439670
mov ecx, 0xb
mov edx, dword [ebp - 0x28]
call fcn.00407508
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jge 0x439327
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0
mov eax, 0x43967c
mov ecx, 9
mov edx, dword [ebp - 0x28]
call fcn.00407508
mov dword [ebp - 0x1c], eax
jmp 0x43932b
add dword [ebp - 0x1c], 2
cmp dword [ebp - 0x1c], 0
jl 0x4394ae
mov eax, dword [ebp - 0xc]
push eax
push 0
push edi
push 0x7fffffff
mov eax, 0x439670
mov ecx, 0xb
mov edx, dword [ebp - 0x28]
call fcn.00407508
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x439364
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
jmp 0x439368
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.004036d8
mov ecx, 0x439690
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
call fcn.00438f10
test al, al
je 0x4394ae
mov ecx, 0x4396a4
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
call fcn.00438f10
test al, al
je 0x4394ae
mov ecx, 0x439654
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
call fcn.00438f10
test al, al
je 0x4394ae
mov ecx, 0x4396bc
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
call fcn.00438f10
test al, al
je 0x4394ae
lea ecx, [ebp - 0x7c]
mov edx, 0x4396bc
mov eax, dword [ebp - 0x14]
call fcn.00438c7c
cmp dword [ebp - 0x7c], 0
jne 0x439422
mov ecx, 0x4396cc
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
call fcn.00438f10
test al, al
je 0x4394ae
mov ecx, 0x4396e4
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
call fcn.00438f10
test al, al
je 0x4394ae
lea ecx, [ebp - 0x10]
mov edx, 0x439700
mov eax, dword [ebp - 0x14]
call fcn.00438c7c
cmp dword [ebp - 0x10], 0
je 0x439457
mov eax, dword [ebp - 0x10]
call fcn.00403810
push eax
mov eax, dword [ebp - 0x10]
call fcn.004039d4
mov edx, eax
xor eax, eax
pop ecx
call fcn.00407fc8
mov edi, eax
jmp 0x43945c
mov edi, 1
lea eax, [ebp - 0x7c]
push eax
lea eax, [edi + 1]
mov cl, 0x30
mov edx, 1
call fcn.00407cf8
mov eax, dword [ebp - 0x7c]
push eax
lea eax, [ebp - 8]
mov ecx, 0x43963c
mov edx, 0x439700
call fcn.00438db0
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0xc]
jae 0x4394a3
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.004026e8
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x1c]
sub dword [ebp - 0xc], eax
jmp 0x4394b7
cmp edi, 0xffffffff
jne 0x4392a1
test bl, bl
je 0x439530
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, 0x439670
mov ecx, 0xb
mov edx, dword [ebp - 0x28]
call fcn.00407508
mov edi, eax
cmp edi, 0xffffffff
je 0x439515
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 0x4394c9
cmp edi, 0xffffffff
je 0x439530
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.004026e8
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 0x439710
push 0x439710
lea eax, [ebp - 8]
mov edx, 3
call fcn.004038d0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00403810
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
jne 0x4395b9
lea eax, [ebp - 0x2c]
call fcn.00404900
push eax
push 0x439714
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax]
test eax, eax
jne 0x4395b9
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 0x439602
lea eax, [ebp - 0x7c]
call fcn.004035f4
lea eax, [ebp - 0x2c]
call fcn.00404900
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00403618
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403618
lea eax, [ebp + 8]
call fcn.00404900
ret