Function at 0x4188f8
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x17
push 0
push 0
dec ecx
jne 0x418901
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 0x419049
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, 0x419064
call fcn.0040bbd8
mov ebx, eax
test ebx, ebx
jle 0x41899a
mov eax, dword [ebp - 0x4c]
call fcn.0040442c
sub eax, 3
cmp ebx, eax
jne 0x41899a
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 0x418eff
lea ecx, [ebp - 0x97]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00412ec8
cmp dword [ebp - 0x2c], 1
jne 0x418a1f
mov eax, dword [ebp - 0x8f]
xor edx, edx
push edx
push eax
mov eax, dword [0x425d40]
mov edx, 0x419074
call fcn.00404848
call fcn.00404d84
call fcn.004030b0
mov edx, dword [ebp - 0x51]
mov eax, dword [ebp - 4]
call fcn.00412ce8
cmp eax, dword [ebp - 0x87]
je 0x418a48
mov edx, dword [ebp - 0x51]
mov eax, dword [ebp - 4]
call fcn.00412ce8
cmp eax, 0x4d2
je 0x418a48
xor eax, eax
jmp 0x418a4a
mov al, 1
mov edx, dword [ebp + 0x24]
mov byte [edx], al
mov eax, dword [ebp + 0x24]
cmp byte [eax], 0
je 0x418fea
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.00412c10
test al, al
je 0x418ab2
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 0x418ab2
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov eax, dword [0x425e74]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x8b]
jne 0x418ef7
xor ecx, ecx
mov edx, dword [ebp - 0x93]
mov eax, dword [ebp - 0x10]
call fcn.00406e6c
cmp dword [ebp - 0x2c], 1
jne 0x418aee
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 0x418b0e
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 0x418b54
xor eax, eax
call fcn.0040be08
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.00418718
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 0x418ba9
mov edx, dword [ebp - 0x93]
mov dword [ebp - 0x24], edx
cmp eax, dword [ebp - 0x1c]
jge 0x418d35
lea edx, [ebp - 0x38]
xor ecx, ecx
mov eax, dword [ebp - 0x34]
call fcn.0040f8cc
mov edx, dword [ebp - 0x38]
mov eax, 0x4190c4
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 0x418d35
mov edx, dword [ebp - 0x34]
mov eax, 0x4190d0
call fcn.00404770
test eax, eax
jle 0x418c21
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.0040b590
lea eax, [ebp - 0x40]
push eax
xor ecx, ecx
mov edx, 1
mov eax, dword [ebp - 0x34]
call fcn.0040b590
mov edx, dword [ebp - 0x3c]
mov eax, 0x4190d0
call fcn.00404770
test eax, eax
jle 0x418c81
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, 0x4190d0
call fcn.00404770
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x3c]
call fcn.0040468c
push dword [ebp - 8]
push 0x4190dc
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 0x418cb7
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.00413c10
test al, al
jne 0x418ce6
inc dword [0x425c08]
test al, al
jne 0x418d35
cmp dword [0x425c08], 1
jne 0x418d35
push 0
push 0
push dword [ebp - 0x48]
push 0x4190e8
lea ecx, [ebp - 0xa8]
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x48]
call fcn.004187a8
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.0040c21c
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 0x418d58
cmp eax, 0x4a
jbe 0x418d67
jmp 0x418d5a
jle 0x418d67
call fcn.00412a64
test al, al
je 0x418b54
cmp dword [ebp - 0x2c], 1
jne 0x418ef7
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 0x418ef7
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, 0x41911c
call fcn.0040bd38
test al, al
jne 0x418dc1
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, 0x41912c
call fcn.0040bd38
test al, al
je 0x418ef7
lea ecx, [ebp - 0x97]
mov edx, dword [ebp - 0x10]
xor eax, eax
call fcn.00412ec8
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.0041866c
mov edx, eax
mov eax, dword [ebp - 0x83]
call fcn.0040b4d0
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 0x4190dc
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.00413c10
call sub.kernel32.dll_GetCurrentProcessId
xor edx, edx
push edx
push eax
mov eax, dword [0x425d40]
call fcn.00404d84
mov edx, 0x419140
call fcn.00404848
push eax
push dword [ebp - 8]
push 0x4190dc
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.00412a40
test al, al
je 0x418fd1
mov al, 1
call fcn.0040bfa4
inc dword [ebp - 0x2c]
push dword [ebp - 0x4c]
push 0x419158
lea ecx, [ebp - 0xb8]
mov edx, 3
mov eax, dword [ebp - 0x2c]
call fcn.0040c6a4
push dword [ebp - 0xb8]
lea eax, [ebp - 4]
mov edx, 3
call fcn.004044ec
cmp byte [ebp + 0xc], 0
jne 0x418f5c
mov eax, dword [ebp - 4]
call fcn.00406ee8
test al, al
jne 0x418fbf
mov eax, dword [ebp - 4]
call fcn.00414c00
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, 0x419164
mov eax, dword [ebp + 0x1c]
call fcn.0040ca54
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.0040c3dc
mov byte [ebp - 0x4d], al
xor edx, edx
mov eax, 0x1f4
call fcn.0040be40
mov eax, dword [ebp - 4]
call fcn.00406ee8
test al, al
jne 0x418fbf
cmp byte [ebp - 0x4d], 0
jne 0x418f64
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.00412a40
test al, al
je 0x418fea
cmp byte [ebp - 0x4d], 0
jne 0x4189d5
cmp byte [ebp - 0x4d], 0
jne 0x418ff8
mov eax, dword [ebp + 8]
call fcn.00404188
xor edx, edx
mov eax, 0x1f4
call fcn.0040be40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419050
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