Function at 0x4173a4
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x17
push 0
push 0
dec ecx
jne 0x4173ad
push ecx
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 eax, dword [ebp - 4]
call fcn.0040461c
mov eax, dword [ebp - 8]
call fcn.0040461c
mov eax, dword [ebp - 0xc]
call fcn.0040461c
mov eax, dword [ebp + 0x1c]
call fcn.0040461c
mov eax, dword [ebp + 0x18]
call fcn.0040461c
mov eax, dword [ebp + 0x14]
call fcn.0040461c
xor eax, eax
push ebp
push 0x417a77
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x51], 1
lea eax, [ebp - 0x50]
mov edx, dword [ebp - 4]
call fcn.00404220
mov dword [ebp - 0x2c], 1
lea eax, [ebp - 0x9b]
xor ecx, ecx
mov edx, 0x4a
call fcn.00402d2c
mov eax, dword [ebp + 8]
call fcn.00404188
mov eax, dword [ebp + 0x24]
mov byte [eax], 0
push 0
push 1
push 0
xor ecx, ecx
xor edx, edx
xor eax, eax
call dword [ebp + 0x20]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
call fcn.00406ed0
test al, al
je 0x41794a
lea ecx, [ebp - 0x9b]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004123a4
cmp dword [ebp - 0x2c], 1
jne 0x41749b
mov eax, dword [ebp - 0x93]
xor edx, edx
push edx
push eax
mov eax, dword [0x422cf4]
mov edx, 0x417a90
call fcn.00404848
call fcn.00404d84
call fcn.004030b0
mov edx, dword [ebp - 0x55]
mov eax, dword [ebp - 4]
call fcn.00412134
cmp eax, dword [ebp - 0x8b]
mov eax, dword [ebp + 0x24]
sete byte [eax]
mov eax, dword [ebp + 0x24]
cmp byte [eax], 0
je 0x417a1a
mov edx, 0x40
mov eax, dword [ebp - 4]
call fcn.00406d80
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.0041205c
test al, al
je 0x417515
xor ecx, ecx
mov edx, 0xfc
mov eax, dword [ebp - 0x10]
call fcn.00406e54
lea edx, [ebp - 0x28]
mov ecx, 4
mov eax, dword [ebp - 0x10]
call fcn.00406dfc
cmp dword [ebp - 0x28], 0
jle 0x417515
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov eax, dword [0x422dfc]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x8f]
jne 0x417942
xor ecx, ecx
mov edx, dword [ebp - 0x97]
mov eax, dword [ebp - 0x10]
call fcn.00406e54
cmp dword [ebp - 0x2c], 1
jne 0x417551
push 0
push 1
push 0
mov ecx, dword [ebp - 0x93]
xor edx, edx
xor eax, eax
call dword [ebp + 0x20]
xor eax, eax
push ebp
push 0x417571
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00406f04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4175bd
call fcn.0040ce24
lea edx, [ebp - 0x18]
mov ecx, 4
mov eax, dword [ebp - 0x10]
call fcn.00406dfc
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 0x18]
call fcn.004047b8
lea edx, [ebp - 0x38]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
call fcn.004171c4
mov eax, dword [ebp - 0x18]
add eax, 4
add dword [ebp - 0x97], eax
inc dword [ebp - 0x1c]
xor eax, eax
mov al, byte [ebp - 0x9a]
cmp eax, dword [ebp - 0x1c]
jne 0x417610
mov edx, dword [ebp - 0x97]
mov dword [ebp - 0x24], edx
cmp eax, dword [ebp - 0x1c]
jge 0x4177cb
lea edx, [ebp - 0x3c]
xor ecx, ecx
mov eax, dword [ebp - 0x38]
call fcn.0040ed40
mov edx, dword [ebp - 0x3c]
mov eax, 0x417b28
call fcn.00404770
mov ebx, eax
lea eax, [ebp - 0x38]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x3c]
call fcn.0040468c
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x3c]
call fcn.0040442c
mov ecx, eax
lea edx, [ebx + 1]
mov eax, dword [ebp - 0x3c]
call fcn.0040468c
cmp dword [ebp - 0x38], 0
je 0x4177cb
mov edx, dword [ebp - 0x38]
mov eax, 0x417b34
call fcn.00404770
test eax, eax
jle 0x417688
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x38]
call fcn.004041dc
lea eax, [ebp - 0x40]
push eax
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x38]
call fcn.0040c7ec
lea eax, [ebp - 0x44]
push eax
xor ecx, ecx
mov edx, 1
mov eax, dword [ebp - 0x38]
call fcn.0040c7ec
mov edx, dword [ebp - 0x40]
mov eax, 0x417b34
call fcn.00404770
test eax, eax
jle 0x4176e8
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x40]
call fcn.004041dc
lea eax, [ebp - 0x40]
push eax
mov edx, dword [ebp - 0x40]
mov eax, 0x417b34
call fcn.00404770
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x40]
call fcn.0040468c
push dword [ebp - 8]
push 0x417b40
push dword [ebp - 0x40]
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.004044ec
mov eax, dword [ebp - 0x4c]
call fcn.00406ed0
test al, al
jne 0x41771e
push 0
push 1
push 0
xor ecx, ecx
xor edx, edx
mov eax, 1
call dword [ebp + 0x20]
mov eax, dword [ebp - 0x4c]
call fcn.00406ed0
test al, al
jne 0x417751
inc dword [ebp - 0x30]
mov eax, dword [0x422cf4]
mov edx, dword [ebp - 0x30]
call fcn.00403048
mov edx, 0x417b4c
call fcn.00404848
mov edx, dword [ebp - 0x4c]
call fcn.00404848
call fcn.004030b0
push 0
push 1
xor edx, edx
mov eax, dword [ebp - 0x44]
call fcn.00406d1c
mov ecx, eax
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x4c]
call fcn.00412eac
test al, al
jne 0x417776
inc dword [0x422bdc]
test al, al
jne 0x4177cb
cmp dword [0x422bdc], 1
jne 0x4177cb
push 0x417ab0
push 0
push dword [ebp - 0x4c]
push 0x417b58
lea ecx, [ebp - 0xac]
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x4c]
call fcn.00417254
push dword [ebp - 0xac]
lea eax, [ebp - 0xa8]
mov edx, 3
call fcn.004044ec
mov edx, dword [ebp - 0xa8]
mov ecx, 0x417b18
xor eax, eax
call fcn.0040d0e0
mov eax, dword [ebp - 0x14]
cdq
push edx
push eax
mov eax, dword [ebp - 0x97]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
cmp edx, 0
jne 0x4177ee
cmp eax, 0x4a
jbe 0x4177fd
jmp 0x4177f0
jle 0x4177fd
call fcn.00411eb0
test al, al
je 0x4175bd
cmp dword [ebp - 0x2c], 1
jne 0x417942
lea edx, [ebp - 0xb0]
mov eax, dword [ebp - 0xc]
call fcn.004072e0
mov edx, dword [ebp - 0xb0]
lea eax, [ebp - 0xc]
call fcn.00404220
cmp dword [ebp - 0xc], 0
je 0x417942
lea edx, [ebp - 0xb4]
mov eax, dword [ebp - 4]
call fcn.00407318
mov eax, dword [ebp - 0xb4]
mov edx, 0x417b8c
call fcn.0040d300
test al, al
je 0x417942
lea ecx, [ebp - 0x9b]
mov edx, dword [ebp - 0x10]
xor eax, eax
call fcn.004123a4
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00406e54
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 0x24]
call fcn.004047b8
lea eax, [ebp - 0x38]
call fcn.00404684
mov edx, eax
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x10]
call fcn.00406dfc
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x38]
call fcn.00404684
lea edx, [eax + 0xfc]
lea eax, [ebp - 0x20]
mov ecx, 4
call fcn.00402694
call fcn.00417120
mov edx, eax
mov eax, dword [ebp - 0x87]
call fcn.0040c754
cdq
mov dword [ebp - 0x87], eax
mov dword [ebp - 0x83], edx
mov byte [ebp - 0x56], 1
mov dword [ebp - 0x55], 0x4a
lea eax, [ebp - 0x3c]
mov edx, 0x4a
call fcn.004047b8
lea eax, [ebp - 0x3c]
call fcn.00404684
mov edx, eax
lea eax, [ebp - 0x9b]
mov ecx, 0x4a
call fcn.00402694
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
call fcn.00404434
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00406e68
push eax
push dword [ebp - 8]
push 0x417b40
push dword [ebp - 0xc]
lea eax, [ebp - 0xb8]
mov edx, 3
call fcn.004044ec
mov eax, dword [ebp - 0xb8]
mov edx, dword [ebp - 0x38]
pop ecx
call fcn.00412eac
mov eax, dword [ebp - 0x10]
call fcn.00406e60
lea eax, [ebp - 0x9b]
call fcn.00411ea4
test al, al
je 0x417a01
inc dword [ebp - 0x2c]
push dword [ebp - 0x50]
push 0x417b9c
lea ecx, [ebp - 0xbc]
mov edx, 3
mov eax, dword [ebp - 0x2c]
call fcn.0040d52c
push dword [ebp - 0xbc]
lea eax, [ebp - 4]
mov edx, 3
call fcn.004044ec
cmp byte [ebp + 0xc], 0
jne 0x4179a0
mov eax, dword [ebp - 4]
call fcn.00406ed0
test al, al
jne 0x4179ef
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp - 0xc0]
mov eax, dword [ebp - 0x2c]
call fcn.00406c08
mov ecx, dword [ebp - 0xc0]
mov edx, 0x417ba8
mov eax, dword [ebp + 0x1c]
call fcn.0040d748
mov eax, dword [ebp + 0x14]
push eax
mov al, byte [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x34]
xor eax, eax
call fcn.0040d274
mov byte [ebp - 0x51], al
mov eax, dword [ebp - 4]
call fcn.00406ed0
test al, al
jne 0x4179ef
cmp byte [ebp - 0x51], 0
jne 0x4179a0
push 0
push 1
push 0
xor ecx, ecx
xor edx, edx
mov eax, 1
call dword [ebp + 0x20]
lea eax, [ebp - 0x9b]
call fcn.00411ea4
test al, al
je 0x417a1a
cmp byte [ebp - 0x51], 0
jne 0x417451
cmp byte [ebp - 0x51], 0
jne 0x417a28
mov eax, dword [ebp + 8]
call fcn.00404188
mov eax, 0x1f4
call fcn.0040ce78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417a7e
lea eax, [ebp - 0xc0]
mov edx, 9
call fcn.004041ac
lea eax, [ebp - 0x50]
mov edx, 8
call fcn.004041ac
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004041ac
lea eax, [ebp + 0x14]
mov edx, 3
call fcn.004041ac
ret