Function at 0x418ae0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x17
push 0
push 0
dec ecx
jne 0x418ae9
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 0x419231
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x4d], 1
lea eax, [ebp - 0x4c]
mov edx, dword [ebp - 4]
call fcn.00404220
mov edx, dword [ebp - 0x4c]
mov eax, 0x41924c
call fcn.0040bb78
mov ebx, eax
test ebx, ebx
jle 0x418b82
mov eax, dword [ebp - 0x4c]
call fcn.0040442c
sub eax, 3
cmp ebx, eax
jne 0x418b82
lea eax, [ebp - 0x4c]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x4c]
call fcn.0040468c
mov dword [ebp - 0x2c], 1
lea eax, [ebp - 0x97]
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.00406ee8
test al, al
je 0x4190e7
lea ecx, [ebp - 0x97]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00413084
cmp dword [ebp - 0x2c], 1
jne 0x418c07
mov eax, dword [ebp - 0x8f]
xor edx, edx
push edx
push eax
mov eax, dword [0x425d6c]
mov edx, 0x41925c
call fcn.00404848
call fcn.00404d84
call fcn.004030b0
mov edx, dword [ebp - 0x51]
mov eax, dword [ebp - 4]
call fcn.00412ea4
cmp eax, dword [ebp - 0x87]
je 0x418c30
mov edx, dword [ebp - 0x51]
mov eax, dword [ebp - 4]
call fcn.00412ea4
cmp eax, 0x4d2
je 0x418c30
xor eax, eax
jmp 0x418c32
mov al, 1
mov edx, dword [ebp + 0x24]
mov byte [edx], al
mov eax, dword [ebp + 0x24]
cmp byte [eax], 0
je 0x4191d2
mov edx, 0x40
mov eax, dword [ebp - 4]
call fcn.00406d98
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.00412dcc
test al, al
je 0x418c9a
xor ecx, ecx
mov edx, 0xfc
mov eax, dword [ebp - 0x10]
call fcn.00406e6c
lea edx, [ebp - 0x28]
mov ecx, 4
mov eax, dword [ebp - 0x10]
call fcn.00406e14
cmp dword [ebp - 0x28], 0
jle 0x418c9a
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov eax, dword [0x425ea0]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x8b]
jne 0x4190df
xor ecx, ecx
mov edx, dword [ebp - 0x93]
mov eax, dword [ebp - 0x10]
call fcn.00406e6c
cmp dword [ebp - 0x2c], 1
jne 0x418cd6
push 0
push 1
push 0
mov ecx, dword [ebp - 0x8f]
xor edx, edx
xor eax, eax
call dword [ebp + 0x20]
xor eax, eax
push ebp
push 0x418cf6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00406f1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x418d3c
xor eax, eax
call fcn.0040be4c
lea edx, [ebp - 0x18]
mov ecx, 4
mov eax, dword [ebp - 0x10]
call fcn.00406e14
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x18]
call fcn.004047b8
lea edx, [ebp - 0x34]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
call fcn.00418900
mov eax, dword [ebp - 0x18]
add eax, 4
add dword [ebp - 0x93], eax
inc dword [ebp - 0x1c]
xor eax, eax
mov al, byte [ebp - 0x96]
cmp eax, dword [ebp - 0x1c]
jne 0x418d91
mov edx, dword [ebp - 0x93]
mov dword [ebp - 0x24], edx
cmp eax, dword [ebp - 0x1c]
jge 0x418f1d
lea edx, [ebp - 0x38]
xor ecx, ecx
mov eax, dword [ebp - 0x34]
call fcn.0040fa88
mov edx, dword [ebp - 0x38]
mov eax, 0x4192ac
call fcn.00404770
mov ebx, eax
lea eax, [ebp - 0x34]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x38]
call fcn.0040468c
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x38]
call fcn.0040442c
mov ecx, eax
lea edx, [ebx + 1]
mov eax, dword [ebp - 0x38]
call fcn.0040468c
cmp dword [ebp - 0x34], 0
je 0x418f1d
mov edx, dword [ebp - 0x34]
mov eax, 0x4192b8
call fcn.00404770
test eax, eax
jle 0x418e09
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x34]
call fcn.004041dc
lea eax, [ebp - 0x3c]
push eax
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x34]
call fcn.0040b530
lea eax, [ebp - 0x40]
push eax
xor ecx, ecx
mov edx, 1
mov eax, dword [ebp - 0x34]
call fcn.0040b530
mov edx, dword [ebp - 0x3c]
mov eax, 0x4192b8
call fcn.00404770
test eax, eax
jle 0x418e69
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x3c]
call fcn.004041dc
lea eax, [ebp - 0x3c]
push eax
mov edx, dword [ebp - 0x3c]
mov eax, 0x4192b8
call fcn.00404770
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x3c]
call fcn.0040468c
push dword [ebp - 8]
push 0x4192c4
push dword [ebp - 0x3c]
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.004044ec
mov eax, dword [ebp - 0x48]
call fcn.00406ee8
test al, al
jne 0x418e9f
push 0
push 1
push 0
xor ecx, ecx
xor edx, edx
mov eax, 1
call dword [ebp + 0x20]
mov eax, dword [ebp - 0x48]
call fcn.00406ee8
test al, al
push 0
push 1
xor edx, edx
mov eax, dword [ebp - 0x40]
call fcn.00406d34
mov ecx, eax
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x48]
call fcn.00413dcc
test al, al
jne 0x418ece
inc dword [0x425c34]
test al, al
jne 0x418f1d
cmp dword [0x425c34], 1
jne 0x418f1d
push 0
push 0
push dword [ebp - 0x48]
push 0x4192d0
lea ecx, [ebp - 0xa8]
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x48]
call fcn.00418990
push dword [ebp - 0xa8]
lea eax, [ebp - 0xa4]
mov edx, 3
call fcn.004044ec
mov edx, dword [ebp - 0xa4]
xor ecx, ecx
xor eax, eax
call fcn.0040c260
mov eax, dword [ebp - 0x14]
cdq
push edx
push eax
mov eax, dword [ebp - 0x93]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
cmp edx, 0
jne 0x418f40
cmp eax, 0x4a
jbe 0x418f4f
jmp 0x418f42
jle 0x418f4f
call fcn.00412c20
test al, al
je 0x418d3c
cmp dword [ebp - 0x2c], 1
jne 0x4190df
lea edx, [ebp - 0xac]
mov eax, dword [ebp - 0xc]
call fcn.004072f8
mov edx, dword [ebp - 0xac]
lea eax, [ebp - 0xc]
call fcn.00404220
cmp dword [ebp - 0xc], 0
je 0x4190df
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, 0x419304
call fcn.0040bcd8
test al, al
jne 0x418fa9
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, 0x419314
call fcn.0040bcd8
test al, al
je 0x4190df
lea ecx, [ebp - 0x97]
mov edx, dword [ebp - 0x10]
xor eax, eax
call fcn.00413084
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00406e6c
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x24]
call fcn.004047b8
lea eax, [ebp - 0x34]
call fcn.00404684
mov edx, eax
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x10]
call fcn.00406e14
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x34]
call fcn.00404684
lea edx, [eax + 0xfc]
lea eax, [ebp - 0x20]
mov ecx, 4
call fcn.00402694
call fcn.00418848
mov edx, eax
mov eax, dword [ebp - 0x83]
call fcn.0040b498
cdq
mov dword [ebp - 0x83], eax
mov dword [ebp - 0x7f], edx
mov byte [ebp - 0x52], 1
mov dword [ebp - 0x51], 0x4a
lea eax, [ebp - 0x38]
mov edx, 0x4a
call fcn.004047b8
lea eax, [ebp - 0x38]
call fcn.00404684
mov edx, eax
lea eax, [ebp - 0x97]
mov ecx, 0x4a
call fcn.00402694
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x38]
call fcn.00404434
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00406e80
push eax
push dword [ebp - 8]
push 0x4192c4
push dword [ebp - 0xc]
lea eax, [ebp - 0xb0]
mov edx, 3
call fcn.004044ec
mov eax, dword [ebp - 0xb0]
mov edx, dword [ebp - 0x34]
pop ecx
call fcn.00413dcc
call sub.kernel32.dll_GetCurrentProcessId
xor edx, edx
push edx
push eax
mov eax, dword [0x425d6c]
call fcn.00404d84
mov edx, 0x419328
call fcn.00404848
push eax
push dword [ebp - 8]
push 0x4192c4
push dword [ebp - 0xc]
lea eax, [ebp - 0xb4]
mov edx, 3
call fcn.004044ec
mov edx, dword [ebp - 0xb4]
pop eax
call fcn.00404848
call fcn.004030b0
mov eax, dword [ebp - 0x10]
call fcn.00406e78
lea eax, [ebp - 0x97]
call fcn.00412bfc
test al, al
je 0x4191b9
mov al, 1
call fcn.0040bfe8
inc dword [ebp - 0x2c]
push dword [ebp - 0x4c]
push 0x419340
lea ecx, [ebp - 0xb8]
mov edx, 3
mov eax, dword [ebp - 0x2c]
call fcn.0040c6e8
push dword [ebp - 0xb8]
lea eax, [ebp - 4]
mov edx, 3
call fcn.004044ec
cmp byte [ebp + 0xc], 0
jne 0x419144
mov eax, dword [ebp - 4]
call fcn.00406ee8
test al, al
jne 0x4191a7
mov eax, dword [ebp - 4]
call fcn.00414e20
lea eax, [ebp - 0x30]
push eax
lea edx, [ebp - 0xbc]
mov eax, dword [ebp - 0x2c]
call fcn.00406c20
mov ecx, dword [ebp - 0xbc]
mov edx, 0x41934c
mov eax, dword [ebp + 0x1c]
call fcn.0040ca98
mov eax, dword [ebp + 0x14]
push eax
mov al, byte [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x30]
xor eax, eax
call fcn.0040c420
mov byte [ebp - 0x4d], al
xor edx, edx
mov eax, 0x1f4
call fcn.0040be84
mov eax, dword [ebp - 4]
call fcn.00406ee8
test al, al
jne 0x4191a7
cmp byte [ebp - 0x4d], 0
jne 0x41914c
push 0
push 1
push 0
xor ecx, ecx
xor edx, edx
mov eax, 1
call dword [ebp + 0x20]
lea eax, [ebp - 0x97]
call fcn.00412bfc
test al, al
je 0x4191d2
cmp byte [ebp - 0x4d], 0
jne 0x418bbd
cmp byte [ebp - 0x4d], 0
jne 0x4191e0
mov eax, dword [ebp + 8]
call fcn.00404188
xor edx, edx
mov eax, 0x1f4
call fcn.0040be84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419238
lea eax, [ebp - 0xbc]
mov edx, 9
call fcn.004041ac
lea eax, [ebp - 0x4c]
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