Function at 0x4149f4
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x13
push 0
push 0
dec ecx
jne 0x4149fd
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
call fcn.00404588
mov eax, dword [ebp - 8]
call fcn.00404588
mov eax, dword [ebp - 0xc]
call fcn.00404588
xor eax, eax
push ebp
push 0x414eb8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404100
mov byte [ebx], 0
push 0
push 1
xor ecx, ecx
xor edx, edx
xor eax, eax
call dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00406c6c
test al, al
je 0x414e80
lea ecx, [ebp - 0x82]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00411398
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.004111d4
cmp eax, dword [ebp - 0x72]
sete byte [ebx]
mov edx, 0x40
mov eax, dword [ebp - 4]
call fcn.00406b18
mov dword [ebp - 0x10], eax
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetFileSize_1
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x10]
xor eax, eax
call fcn.004110fc
test al, al
je 0x414add
xor ecx, ecx
mov edx, 0xfc
mov eax, dword [ebp - 0x10]
call fcn.00406bf0
lea edx, [ebp - 0x24]
mov ecx, 4
mov eax, dword [ebp - 0x10]
call fcn.00406b98
cmp dword [ebp - 0x24], 0
jle 0x414add
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov eax, dword [0x41eda0]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x76]
jne 0x414e78
xor ecx, ecx
mov edx, dword [ebp - 0x7e]
mov eax, dword [ebp - 0x10]
call fcn.00406bf0
push 0
push 1
mov ecx, dword [ebp - 0x7a]
add ecx, 2
xor edx, edx
xor eax, eax
call dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x414b2b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00406ca0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414b61
xor eax, eax
mov dword [ebp - 0x1c], eax
push 0
push 1
xor ecx, ecx
xor edx, edx
mov eax, 1
call dword [ebp + 0xc]
call fcn.00405bd8
lea edx, [ebp - 0x18]
mov ecx, 4
mov eax, dword [ebp - 0x10]
call fcn.00406b98
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
call fcn.00404724
lea eax, [ebp - 0x28]
call fcn.004045f0
mov edx, eax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
call fcn.00406b98
mov eax, dword [ebp - 0x18]
add eax, 4
add dword [ebp - 0x7e], eax
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 2
jne 0x414bc3
mov eax, dword [ebp - 0x7e]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 2
jle 0x414d1b
lea edx, [ebp - 0x2c]
xor ecx, ecx
mov eax, dword [ebp - 0x28]
call fcn.0040b344
mov edx, dword [ebp - 0x2c]
mov eax, 0x414f44
call fcn.004046dc
mov ebx, eax
lea eax, [ebp - 0x28]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x2c]
call fcn.004045f8
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x2c]
call fcn.004043a0
mov ecx, eax
lea edx, [ebx + 1]
mov eax, dword [ebp - 0x2c]
call fcn.004045f8
cmp dword [ebp - 0x28], 0
je 0x414d1b
mov edx, dword [ebp - 0x28]
mov eax, 0x414f50
call fcn.004046dc
test eax, eax
jle 0x414c3c
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x28]
call fcn.00404154
lea ecx, [ebp - 0x30]
xor edx, edx
mov eax, dword [ebp - 0x28]
call fcn.0040e0ac
lea ecx, [ebp - 0x34]
mov edx, 1
mov eax, dword [ebp - 0x28]
call fcn.0040e0ac
mov edx, dword [ebp - 0x30]
mov eax, 0x414f50
call fcn.004046dc
test eax, eax
jle 0x414c96
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x30]
call fcn.00404154
lea eax, [ebp - 0x30]
push eax
mov edx, dword [ebp - 0x30]
mov eax, 0x414f50
call fcn.004046dc
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x30]
call fcn.004045f8
xor edx, edx
mov eax, dword [ebp - 0x34]
call fcn.00406ab4
push eax
push dword [ebp - 8]
push 0x414f5c
push dword [ebp - 0x30]
lea eax, [ebp - 0x8c]
mov edx, 3
call fcn.00404460
mov eax, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x38]
pop ecx
call fcn.00411afc
test al, al
jne 0x414cd5
inc dword [0x41ebb0]
test al, al
jne 0x414d1b
cmp dword [0x41ebb0], 1
jne 0x414d1b
push 0x414ed0
push 0
push dword [ebp - 8]
push 0x414f5c
push dword [ebp - 0x30]
push 0x414f68
lea eax, [ebp - 0x90]
mov edx, 4
call fcn.00404460
mov edx, dword [ebp - 0x90]
mov ecx, 0x414f34
xor eax, eax
call fcn.0040e67c
mov eax, dword [ebp - 0x14]
cdq
push edx
push eax
mov eax, dword [ebp - 0x7e]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
cmp edx, 0
jne 0x414d3b
cmp eax, 0x4a
jbe 0x414d4a
jmp 0x414d3d
jle 0x414d4a
call fcn.00410f50
test al, al
je 0x414b66
lea edx, [ebp - 0x94]
mov eax, dword [ebp - 0xc]
call fcn.00407098
mov edx, dword [ebp - 0x94]
lea eax, [ebp - 0xc]
call fcn.00404198
cmp dword [ebp - 0xc], 0
je 0x414e78
lea edx, [ebp - 0x98]
mov eax, dword [ebp - 4]
call fcn.004070d0
mov eax, dword [ebp - 0x98]
mov edx, 0x414f98
call fcn.0040e808
test al, al
je 0x414e78
lea ecx, [ebp - 0x82]
mov edx, dword [ebp - 0x10]
xor eax, eax
call fcn.00411398
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00406bf0
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x20]
call fcn.00404724
lea eax, [ebp - 0x28]
call fcn.004045f0
mov edx, eax
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
call fcn.00406b98
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x28]
call fcn.004045f0
lea edx, [eax + 0xfc]
lea eax, [ebp - 0x1c]
mov ecx, 4
call fcn.00402658
call fcn.0041495c
mov edx, eax
mov eax, dword [ebp - 0x6e]
call fcn.0040e024
cdq
mov dword [ebp - 0x6e], eax
mov dword [ebp - 0x6a], edx
mov byte [ebp - 0x3d], 1
mov dword [ebp - 0x3c], 0x4a
lea eax, [ebp - 0x2c]
mov edx, 0x4a
call fcn.00404724
lea eax, [ebp - 0x2c]
call fcn.004045f0
mov edx, eax
lea eax, [ebp - 0x82]
mov ecx, 0x4a
call fcn.00402658
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
call fcn.004043a8
mov eax, dword [ebp - 4]
call fcn.00406c04
push eax
push dword [ebp - 8]
push 0x414f5c
push dword [ebp - 0xc]
lea eax, [ebp - 0x9c]
mov edx, 3
call fcn.00404460
mov eax, dword [ebp - 0x9c]
mov edx, dword [ebp - 0x28]
pop ecx
call fcn.00411afc
mov eax, dword [ebp - 0x10]
call fcn.00406bfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414ebf
lea eax, [ebp - 0x9c]
mov edx, 6
call fcn.00404124
lea eax, [ebp - 0x38]
mov edx, 5
call fcn.00404124
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404124
ret