Function at 0x415ff8
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x13
push 0
push 0
dec ecx
jne 0x416001
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.0040461c
mov eax, dword [ebp - 8]
call fcn.0040461c
mov eax, dword [ebp - 0xc]
call fcn.0040461c
xor eax, eax
push ebp
push 0x4164bb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404188
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.00406ec8
test al, al
je 0x416483
lea ecx, [ebp - 0x82]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00411a34
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.00411870
cmp eax, dword [ebp - 0x72]
sete byte [ebx]
mov edx, 0x40
mov eax, dword [ebp - 4]
call fcn.00406d78
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.00411798
test al, al
je 0x4160e1
xor ecx, ecx
mov edx, 0xfc
mov eax, dword [ebp - 0x10]
call fcn.00406e4c
lea edx, [ebp - 0x24]
mov ecx, 4
mov eax, dword [ebp - 0x10]
call fcn.00406df4
cmp dword [ebp - 0x24], 0
jle 0x4160e1
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov eax, dword [0x420db8]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x76]
jne 0x41647b
xor ecx, ecx
mov edx, dword [ebp - 0x7e]
mov eax, dword [ebp - 0x10]
call fcn.00406e4c
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 0x41612f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00406efc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x416165
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.0040b92c
lea edx, [ebp - 0x18]
mov ecx, 4
mov eax, dword [ebp - 0x10]
call fcn.00406df4
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
call fcn.004047b8
lea edx, [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
call fcn.00415f68
mov eax, dword [ebp - 0x18]
add eax, 4
add dword [ebp - 0x7e], eax
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 2
jne 0x4161c0
mov eax, dword [ebp - 0x7e]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 2
jle 0x41631e
lea edx, [ebp - 0x2c]
xor ecx, ecx
mov eax, dword [ebp - 0x28]
call fcn.0040e8d0
mov edx, dword [ebp - 0x2c]
mov eax, 0x416548
call fcn.00404770
mov ebx, eax
lea eax, [ebp - 0x28]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x2c]
call fcn.0040468c
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x2c]
call fcn.0040442c
mov ecx, eax
lea edx, [ebx + 1]
mov eax, dword [ebp - 0x2c]
call fcn.0040468c
cmp dword [ebp - 0x28], 0
je 0x41631e
mov edx, dword [ebp - 0x28]
mov eax, 0x416554
call fcn.00404770
test eax, eax
jle 0x416239
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x28]
call fcn.004041dc
lea eax, [ebp - 0x30]
push eax
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x28]
call fcn.0040b3e8
lea eax, [ebp - 0x34]
push eax
xor ecx, ecx
mov edx, 1
mov eax, dword [ebp - 0x28]
call fcn.0040b3e8
mov edx, dword [ebp - 0x30]
mov eax, 0x416554
call fcn.00404770
test eax, eax
jle 0x416299
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x30]
call fcn.004041dc
lea eax, [ebp - 0x30]
push eax
mov edx, dword [ebp - 0x30]
mov eax, 0x416554
call fcn.00404770
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x30]
call fcn.0040468c
xor edx, edx
mov eax, dword [ebp - 0x34]
call fcn.00406d14
push eax
push dword [ebp - 8]
push 0x416560
push dword [ebp - 0x30]
lea eax, [ebp - 0x8c]
mov edx, 3
call fcn.004044ec
mov eax, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x38]
pop ecx
call fcn.00412250
test al, al
jne 0x4162d8
inc dword [0x420bc0]
test al, al
jne 0x41631e
cmp dword [0x420bc0], 1
jne 0x41631e
push 0x4164d4
push 0
push dword [ebp - 8]
push 0x416560
push dword [ebp - 0x30]
push 0x41656c
lea eax, [ebp - 0x90]
mov edx, 4
call fcn.004044ec
mov edx, dword [ebp - 0x90]
mov ecx, 0x416538
xor eax, eax
call fcn.0040bbcc
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 0x41633e
cmp eax, 0x4a
jbe 0x41634d
jmp 0x416340
jle 0x41634d
call fcn.004115ec
test al, al
je 0x41616a
lea edx, [ebp - 0x94]
mov eax, dword [ebp - 0xc]
call fcn.004072d8
mov edx, dword [ebp - 0x94]
lea eax, [ebp - 0xc]
call fcn.00404220
cmp dword [ebp - 0xc], 0
je 0x41647b
lea edx, [ebp - 0x98]
mov eax, dword [ebp - 4]
call fcn.00407310
mov eax, dword [ebp - 0x98]
mov edx, 0x41659c
call fcn.0040bd58
test al, al
je 0x41647b
lea ecx, [ebp - 0x82]
mov edx, dword [ebp - 0x10]
xor eax, eax
call fcn.00411a34
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00406e4c
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x20]
call fcn.004047b8
lea eax, [ebp - 0x28]
call fcn.00404684
mov edx, eax
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
call fcn.00406df4
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x28]
call fcn.00404684
lea edx, [eax + 0xfc]
lea eax, [ebp - 0x1c]
mov ecx, 4
call fcn.00402694
call fcn.00415ec4
mov edx, eax
mov eax, dword [ebp - 0x6e]
call fcn.0040b360
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.004047b8
lea eax, [ebp - 0x2c]
call fcn.00404684
mov edx, eax
lea eax, [ebp - 0x82]
mov ecx, 0x4a
call fcn.00402694
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
call fcn.00404434
mov eax, dword [ebp - 4]
call fcn.00406e60
push eax
push dword [ebp - 8]
push 0x416560
push dword [ebp - 0xc]
lea eax, [ebp - 0x9c]
mov edx, 3
call fcn.004044ec
mov eax, dword [ebp - 0x9c]
mov edx, dword [ebp - 0x28]
pop ecx
call fcn.00412250
mov eax, dword [ebp - 0x10]
call fcn.00406e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4164c2
lea eax, [ebp - 0x9c]
mov edx, 6
call fcn.004041ac
lea eax, [ebp - 0x38]
mov edx, 5
call fcn.004041ac
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004041ac
ret