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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x19
push 0
push 0
dec ecx
jne 0x44999d
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
call fcn.004054b0
xor eax, eax
push ebp
push 0x44a362
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00405220
je 0x44a2b8
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.00405220
jne 0x449bf9
lea edx, [ebp - 0x20]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x1f8]
cmp byte [ebp + 0xc], 0
jne 0x449bdb
mov eax, 0xfa
call fcn.00431d0c
test al, al
je 0x449a20
push 0
call sub.user32.dll_MessageBeep
jmp 0x44a2b8
push 0x7fffffff
mov edi, dword [0x533280]
mov edi, dword [edi]
mov ecx, 1
mov edx, dword [ebp - 0x20]
mov eax, 0x44a37c
call edi
test eax, eax
jle 0x449a69
lea edx, [ebp - 0x94]
mov eax, dword [ebp - 0x20]
call fcn.00430280
mov edx, dword [ebp - 0x94]
lea eax, [ebp - 0x20]
call fcn.00404fa4
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.0040c11c
jmp 0x449a78
lea ecx, [ebp - 0x24]
mov dl, 1
mov eax, 0x10
call fcn.004323b0
lea edx, [ebp - 0x98]
mov eax, dword [ebp - 0x20]
call fcn.0040c0dc
mov edx, dword [ebp - 0x98]
lea eax, [ebp - 0x20]
call fcn.00404fa4
lea eax, [ebp - 0x20]
mov edx, 0x44a384
call fcn.00405114
lea eax, [ebp - 0x20]
mov edx, 0x105
call fcn.0040546c
lea edx, [ebp - 0x28]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x2ac]
lea eax, [ebp - 0x90]
mov edx, 0x4c
call fcn.00408314
mov dword [ebp - 0x90], 0x4c
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x78], 1
mov dword [ebp - 0x70], 0x104
mov dword [ebp - 0x5c], 0x8004
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x449b54
mov eax, dword [ebp - 0x20]
call fcn.004050f8
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x24]
call fcn.004050f8
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x28]
call fcn.004050f8
mov dword [ebp - 0x60], eax
mov eax, 0x44a388
mov dword [ebp - 0x84], eax
mov eax, 0x44a3a4
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x90]
push eax
call sub.comdlg32.dll_GetSaveFileNameW
test eax, eax
je 0x44a2b8
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x74]
call fcn.0040506c
jmp 0x449c04
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x20]
call fcn.00404a20
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x24]
call fcn.00404a20
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x28]
call fcn.00404a20
mov eax, dword [ebp - 0x14]
call fcn.00404c58
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x18]
call fcn.00404c58
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x1c]
call fcn.00404c58
mov dword [ebp - 0x60], eax
mov eax, 0x44a3b0
mov dword [ebp - 0x84], eax
mov eax, 0x44a3c0
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x90]
push eax
call sub.comdlg32.dll_GetSaveFileNameA
test eax, eax
je 0x44a2b8
lea eax, [ebp - 0x9c]
mov edx, dword [ebp - 0x74]
call fcn.00404990
mov edx, dword [ebp - 0x9c]
lea eax, [ebp - 0x20]
call fcn.004050e8
jmp 0x449c04
lea edx, [ebp - 0xa0]
mov eax, dword [ebp - 0x20]
call fcn.00430280
mov edx, dword [ebp - 0xa0]
lea eax, [ebp - 0x20]
call fcn.00404fa4
jmp 0x449c04
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 4]
call fcn.00404fa4
push ebp
mov eax, dword [ebp - 0x20]
call fcn.00449684
pop ecx
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x449c3b
push 0
push 0
push 4
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 0x20]
call fcn.004050f8
push eax
call sub.kernel32.dll_CreateFileW
mov ebx, eax
jmp 0x449c6b
push 0
push 0
push 4
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0xa4]
mov edx, dword [ebp - 0x20]
call fcn.00404a20
mov eax, dword [ebp - 0xa4]
call fcn.00404c58
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x449d92
push 0x7fffffff
lea edx, [ebp - 0xa8]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x1f8]
mov edx, dword [ebp - 0xa8]
mov edi, dword [0x533280]
mov edi, dword [edi]
mov ecx, 1
mov eax, 0x44a37c
call edi
test eax, eax
jne 0x449d92
push 0x44a3cc
lea edx, [ebp - 0xb4]
xor eax, eax
call fcn.00430190
mov eax, dword [ebp - 0xb4]
lea edx, [ebp - 0xb0]
call fcn.0040c0dc
mov eax, dword [ebp - 0xb0]
lea edx, [ebp - 0xac]
call fcn.00430240
push dword [ebp - 0xac]
push 0x44a37c
lea edx, [ebp - 0xb8]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x1f8]
push dword [ebp - 0xb8]
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.004051d8
push 0x44a3f0
push 0x44a40c
push 0x44a428
lea edx, [ebp - 0x20]
mov ecx, 0x44a44c
xor eax, eax
call fcn.004326c0
push ebp
mov eax, dword [ebp - 0x20]
call fcn.00449684
pop ecx
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x449d62
push 0
push 0
push 4
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 0x20]
call fcn.004050f8
push eax
call sub.kernel32.dll_CreateFileW
mov ebx, eax
jmp 0x449d92
push 0
push 0
push 4
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0xbc]
mov edx, dword [ebp - 0x20]
call fcn.00404a20
mov eax, dword [ebp - 0xbc]
call fcn.00404c58
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x44a2b8
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x200]
test al, al
je 0x44a232
push 0
push ebx
call sub.kernel32.dll_GetFileSize_1
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
call fcn.00404f44
cmp dword [ebp - 0x10], 0
jbe 0x449e7b
lea ecx, [ebp - 0x20]
mov edx, 0x44a46c
mov eax, dword [ebp - 8]
call fcn.00449460
mov eax, dword [ebp - 0x20]
call fcn.00405108
cmp eax, 0x1f
jne 0x449e73
lea ecx, [ebp - 0xc0]
mov edx, 0x44a48c
mov eax, dword [ebp - 8]
call fcn.00449460
mov eax, dword [ebp - 0xc0]
xor edx, edx
call fcn.00405220
je 0x449e26
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x210]
mov byte [ebp - 0x3d], al
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x220]
jmp 0x449e3d
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x218]
mov byte [ebp - 0x3d], al
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x228]
cmp byte [ebp - 0x3d], 0
jne 0x449e4d
lea eax, [ebp - 0x20]
call fcn.00404f44
jmp 0x449e7b
sub al, 1
jb 0x449e55
je 0x449e64
jmp 0x449e7b
lea eax, [ebp - 0x20]
mov edx, 9
call fcn.0040546c
jmp 0x449e7b
lea eax, [ebp - 0x20]
mov edx, 0x14
call fcn.0040546c
jmp 0x449e7b
lea eax, [ebp - 0x20]
call fcn.00404f44
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x208]
test eax, eax
jbe 0x449e98
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x208]
cmp eax, dword [ebp - 0x10]
jb 0x449e9c
xor eax, eax
jmp 0x449e9e
mov al, 1
mov byte [ebp - 0x3d], al
cmp byte [ebp - 0x3d], 0
jne 0x449eb7
mov eax, dword [ebp - 0x20]
xor edx, edx
call fcn.00405220
je 0x44a224
push 0
push 0
push 0
push 4
push 0
push ebx
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x44a224
push 0
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x38]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x44a21b
mov eax, dword [ebp - 0x20]
xor edx, edx
call fcn.00405220
je 0x44a181
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x20]
call fcn.0040bec8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 0x2c]
dec eax
push eax
push 0
mov eax, dword [ebp - 0x14]
call fcn.00404a58
add eax, 2
push eax
lea eax, [ebp - 0xc4]
mov ecx, dword [ebp - 0x14]
mov edx, 0x44a4b4
call fcn.00404aa4
mov eax, dword [ebp - 0xc4]
call fcn.00404c58
mov edi, dword [0x5330f0]
mov edi, dword [edi]
mov edx, dword [ebp - 0x3c]
pop ecx
call edi
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jl 0x44a177
mov eax, dword [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 0x2c]
push eax
push 0
mov edi, dword [0x5330f0]
mov edi, dword [edi]
mov eax, 0x44a4b8
mov ecx, 0xb
mov edx, dword [ebp - 0x3c]
call edi
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x449fba
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0
push 0
mov edi, dword [0x5330f0]
mov edi, dword [edi]
mov eax, 0x44a4c4
mov ecx, 9
mov edx, dword [ebp - 0x3c]
call edi
mov dword [ebp - 0x30], eax
jmp 0x449fbe
add dword [ebp - 0x30], 2
cmp dword [ebp - 0x30], 0
jl 0x44a177
mov eax, dword [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 0x2c]
push eax
push 0x7fffffff
mov edi, dword [0x5330f0]
mov edi, dword [edi]
mov eax, 0x44a4b8
mov ecx, 0xb
mov edx, dword [ebp - 0x3c]
call edi
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jge 0x449fff
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x34], eax
jmp 0x44a003
add dword [ebp - 0x34], 2
mov ecx, dword [ebp - 0x34]
sub ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x3c]
add edx, dword [ebp - 0x30]
lea eax, [ebp - 0x18]
call fcn.00404878
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x18]
call fcn.0040bccc
mov ecx, 0x44a4d4
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x24]
call fcn.00449920
test al, al
je 0x44a177
mov ecx, 0x44a4f0
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x24]
call fcn.00449920
test al, al
je 0x44a177
mov ecx, 0x44a48c
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x24]
call fcn.00449920
test al, al
je 0x44a177
mov ecx, 0x44a514
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x24]
call fcn.00449920
test al, al
je 0x44a177
lea ecx, [ebp - 0xc8]
mov edx, 0x44a514
mov eax, dword [ebp - 0x24]
call fcn.00449460
mov eax, dword [ebp - 0xc8]
xor edx, edx
call fcn.00405220
jne 0x44a0d4
mov ecx, 0x44a528
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x24]
call fcn.00449920
test al, al
je 0x44a177
mov ecx, 0x44a54c
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x24]
call fcn.00449920
test al, al
je 0x44a177
lea ecx, [ebp - 0x20]
mov edx, 0x44a574
mov eax, dword [ebp - 0x24]
call fcn.00449460
mov eax, dword [ebp - 0x20]
xor edx, edx
call fcn.00405220
je 0x44a115
mov eax, dword [ebp - 0x20]
call fcn.00405108
push eax
mov eax, dword [ebp - 0x20]
call fcn.004050f8
mov edx, eax
mov edi, dword [0x533430]
mov edi, dword [edi]
xor eax, eax
pop ecx
call edi
mov dword [ebp - 0x2c], eax
jmp 0x44a11c
mov dword [ebp - 0x2c], 1
lea eax, [ebp - 0xcc]
push eax
mov eax, dword [ebp - 0x2c]
inc eax
mov cx, 0x30
mov edx, 1
call fcn.0040aba8
mov eax, dword [ebp - 0xcc]
push eax
lea eax, [ebp - 8]
mov ecx, 0x44a46c
mov edx, 0x44a574
call fcn.004497d4
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x10]
jae 0x44a16c
mov ecx, dword [ebp - 0x10]
sub ecx, eax
mov edx, dword [ebp - 0x3c]
add edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 0x34]
call fcn.00402978
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x30]
sub dword [ebp - 0x10], eax
jmp 0x44a181
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x449f16
cmp byte [ebp - 0x3d], 0
je 0x44a212
push 0
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer_1
xor eax, eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 0x2c]
inc eax
push eax
push 0x7fffffff
mov edi, dword [0x5330f0]
mov edi, dword [edi]
mov eax, 0x44a4b8
mov ecx, 0xb
mov edx, dword [ebp - 0x3c]
call edi
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
je 0x44a1f1
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x208]
mov edi, eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x208]
shr eax, 2
sub edi, eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x2c]
cmp edi, eax
jbe 0x44a19c
cmp dword [ebp - 0x2c], 0xffffffff
je 0x44a212
add dword [ebp - 0x2c], 2
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
call fcn.00402978
mov eax, dword [ebp - 0x3c]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp - 0x38]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
push ebx
call sub.kernel32.dll_SetFilePointer_1
push dword [ebp - 8]
push 0x44a584
push 0x44a584
lea eax, [ebp - 8]
mov edx, 3
call fcn.004051d8
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.0040bec8
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404a58
push eax
mov eax, dword [ebp - 0x14]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
push ebx
call sub.kernel32.dll_SetEndOfFile_1
push ebx
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.00405220
sete al
and al, byte [ebp + 0xc]
je 0x44a2b8
lea eax, [ebp - 0x44]
call fcn.00406870
push eax
push 0x44a58c
push esi
mov eax, dword [esi]
call dword [eax]
test eax, eax
jne 0x44a2b8
mov dl, 1
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x24]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44a36c
lea eax, [ebp - 0xcc]
mov edx, 2
call fcn.00404f5c
lea eax, [ebp - 0xc4]
call fcn.00404788
lea eax, [ebp - 0xc0]
call fcn.00404f44
lea eax, [ebp - 0xbc]
call fcn.00404788
lea eax, [ebp - 0xb8]
mov edx, 5
call fcn.00404f5c
lea eax, [ebp - 0xa4]
call fcn.00404788
lea eax, [ebp - 0xa0]
call fcn.00404f44
lea eax, [ebp - 0x9c]
call fcn.00404788
lea eax, [ebp - 0x98]
mov edx, 2
call fcn.00404f5c
lea eax, [ebp - 0x44]
call fcn.00406870
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00404f5c
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.004047ac
lea eax, [ebp - 8]
call fcn.00404f44
ret