Function at 0x41889c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x17
push 0
push 0
dec ecx
jne 0x4188a5
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.00404660
mov eax, dword [ebp - 8]
call fcn.00404660
mov eax, dword [ebp - 0xc]
call fcn.00404660
mov eax, dword [ebp + 0x1c]
call fcn.00404660
mov eax, dword [ebp + 0x18]
call fcn.00404660
mov eax, dword [ebp + 0x14]
call fcn.00404660
xor eax, eax
push ebp
push 0x418fed
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.00404264
mov edx, dword [ebp - 0x4c]
mov eax, 0x419008
call fcn.0040bbbc
mov ebx, eax
test ebx, ebx
jle 0x41893e
mov eax, dword [ebp - 0x4c]
call fcn.00404470
sub eax, 3
cmp ebx, eax
jne 0x41893e
lea eax, [ebp - 0x4c]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x4c]
call fcn.004046d0
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.004041cc
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.00406f2c
test al, al
je 0x418ea3
lea ecx, [ebp - 0x97]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00412e20
cmp dword [ebp - 0x2c], 1
jne 0x4189c3
mov eax, dword [ebp - 0x8f]
xor edx, edx
push edx
push eax
mov eax, dword [0x425d38]
mov edx, 0x419018
call fcn.0040488c
call fcn.00404dc8
call fcn.004030f4
mov edx, dword [ebp - 0x51]
mov eax, dword [ebp - 4]
call fcn.00412c40
cmp eax, dword [ebp - 0x87]
je 0x4189ec
mov edx, dword [ebp - 0x51]
mov eax, dword [ebp - 4]
call fcn.00412c40
cmp eax, 0x4d2
je 0x4189ec
xor eax, eax
jmp 0x4189ee
mov al, 1
mov edx, dword [ebp + 0x24]
mov byte [edx], al
mov eax, dword [ebp + 0x24]
cmp byte [eax], 0
je 0x418f8e
mov edx, 0x40
mov eax, dword [ebp - 4]
call fcn.00406ddc
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.00412b68
test al, al
je 0x418a56
xor ecx, ecx
mov edx, 0xfc
mov eax, dword [ebp - 0x10]
call fcn.00406eb0
lea edx, [ebp - 0x28]
mov ecx, 4
mov eax, dword [ebp - 0x10]
call fcn.00406e58
cmp dword [ebp - 0x28], 0
jle 0x418a56
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov eax, dword [0x425e6c]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x8b]
jne 0x418e9b
xor ecx, ecx
mov edx, dword [ebp - 0x93]
mov eax, dword [ebp - 0x10]
call fcn.00406eb0
cmp dword [ebp - 0x2c], 1
jne 0x418a92
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 0x418ab2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00406f60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x418af8
xor eax, eax
call fcn.0040bdec
lea edx, [ebp - 0x18]
mov ecx, 4
mov eax, dword [ebp - 0x10]
call fcn.00406e58
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x18]
call fcn.004047fc
lea edx, [ebp - 0x34]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
call fcn.004186bc
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 0x418b4d
mov edx, dword [ebp - 0x93]
mov dword [ebp - 0x24], edx
cmp eax, dword [ebp - 0x1c]
jge 0x418cd9
lea edx, [ebp - 0x38]
xor ecx, ecx
mov eax, dword [ebp - 0x34]
call fcn.0040f824
mov edx, dword [ebp - 0x38]
mov eax, 0x419068
call fcn.004047b4
mov ebx, eax
lea eax, [ebp - 0x34]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x38]
call fcn.004046d0
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x38]
call fcn.00404470
mov ecx, eax
lea edx, [ebx + 1]
mov eax, dword [ebp - 0x38]
call fcn.004046d0
cmp dword [ebp - 0x34], 0
je 0x418cd9
mov edx, dword [ebp - 0x34]
mov eax, 0x419074
call fcn.004047b4
test eax, eax
jle 0x418bc5
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x34]
call fcn.00404220
lea eax, [ebp - 0x3c]
push eax
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x34]
call fcn.0040b574
lea eax, [ebp - 0x40]
push eax
xor ecx, ecx
mov edx, 1
mov eax, dword [ebp - 0x34]
call fcn.0040b574
mov edx, dword [ebp - 0x3c]
mov eax, 0x419074
call fcn.004047b4
test eax, eax
jle 0x418c25
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x3c]
call fcn.00404220
lea eax, [ebp - 0x3c]
push eax
mov edx, dword [ebp - 0x3c]
mov eax, 0x419074
call fcn.004047b4
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x3c]
call fcn.004046d0
push dword [ebp - 8]
push 0x419080
push dword [ebp - 0x3c]
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.00404530
mov eax, dword [ebp - 0x48]
call fcn.00406f2c
test al, al
jne 0x418c5b
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.00406f2c
test al, al
push 0
push 1
xor edx, edx
mov eax, dword [ebp - 0x40]
call fcn.00406d78
mov ecx, eax
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x48]
call fcn.00413bbc
test al, al
jne 0x418c8a
inc dword [0x425c00]
test al, al
jne 0x418cd9
cmp dword [0x425c00], 1
jne 0x418cd9
push 0
push 0
push dword [ebp - 0x48]
push 0x41908c
lea ecx, [ebp - 0xa8]
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x48]
call fcn.0041874c
push dword [ebp - 0xa8]
lea eax, [ebp - 0xa4]
mov edx, 3
call fcn.00404530
mov edx, dword [ebp - 0xa4]
xor ecx, ecx
xor eax, eax
call fcn.0040c200
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 0x418cfc
cmp eax, 0x4a
jbe 0x418d0b
jmp 0x418cfe
jle 0x418d0b
call fcn.004129bc
test al, al
je 0x418af8
cmp dword [ebp - 0x2c], 1
jne 0x418e9b
lea edx, [ebp - 0xac]
mov eax, dword [ebp - 0xc]
call fcn.0040733c
mov edx, dword [ebp - 0xac]
lea eax, [ebp - 0xc]
call fcn.00404264
cmp dword [ebp - 0xc], 0
je 0x418e9b
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, 0x4190c0
call fcn.0040bd1c
test al, al
jne 0x418d65
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, 0x4190d0
call fcn.0040bd1c
test al, al
je 0x418e9b
lea ecx, [ebp - 0x97]
mov edx, dword [ebp - 0x10]
xor eax, eax
call fcn.00412e20
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00406eb0
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x24]
call fcn.004047fc
lea eax, [ebp - 0x34]
call fcn.004046c8
mov edx, eax
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x10]
call fcn.00406e58
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x34]
call fcn.004046c8
lea edx, [eax + 0xfc]
lea eax, [ebp - 0x20]
mov ecx, 4
call fcn.00402694
call fcn.00418610
mov edx, eax
mov eax, dword [ebp - 0x83]
call fcn.0040b4dc
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.004047fc
lea eax, [ebp - 0x38]
call fcn.004046c8
mov edx, eax
lea eax, [ebp - 0x97]
mov ecx, 0x4a
call fcn.00402694
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x38]
call fcn.00404478
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00406ec4
push eax
push dword [ebp - 8]
push 0x419080
push dword [ebp - 0xc]
lea eax, [ebp - 0xb0]
mov edx, 3
call fcn.00404530
mov eax, dword [ebp - 0xb0]
mov edx, dword [ebp - 0x34]
pop ecx
call fcn.00413bbc
call sub.kernel32.dll_GetCurrentProcessId
xor edx, edx
push edx
push eax
mov eax, dword [0x425d38]
call fcn.00404dc8
mov edx, 0x4190e4
call fcn.0040488c
push eax
push dword [ebp - 8]
push 0x419080
push dword [ebp - 0xc]
lea eax, [ebp - 0xb4]
mov edx, 3
call fcn.00404530
mov edx, dword [ebp - 0xb4]
pop eax
call fcn.0040488c
call fcn.004030f4
mov eax, dword [ebp - 0x10]
call fcn.00406ebc
lea eax, [ebp - 0x97]
call fcn.00412998
test al, al
je 0x418f75
mov al, 1
call fcn.0040bf88
inc dword [ebp - 0x2c]
push dword [ebp - 0x4c]
push 0x4190fc
lea ecx, [ebp - 0xb8]
mov edx, 3
mov eax, dword [ebp - 0x2c]
call fcn.0040c688
push dword [ebp - 0xb8]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404530
cmp byte [ebp + 0xc], 0
jne 0x418f00
mov eax, dword [ebp - 4]
call fcn.00406f2c
test al, al
jne 0x418f63
mov eax, dword [ebp - 4]
call fcn.00414bac
lea eax, [ebp - 0x30]
push eax
lea edx, [ebp - 0xbc]
mov eax, dword [ebp - 0x2c]
call fcn.00406c64
mov ecx, dword [ebp - 0xbc]
mov edx, 0x419108
mov eax, dword [ebp + 0x1c]
call fcn.0040ca38
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.0040c3c0
mov byte [ebp - 0x4d], al
xor edx, edx
mov eax, 0x1f4
call fcn.0040be24
mov eax, dword [ebp - 4]
call fcn.00406f2c
test al, al
jne 0x418f63
cmp byte [ebp - 0x4d], 0
jne 0x418f08
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.00412998
test al, al
je 0x418f8e
cmp byte [ebp - 0x4d], 0
jne 0x418979
cmp byte [ebp - 0x4d], 0
jne 0x418f9c
mov eax, dword [ebp + 8]
call fcn.004041cc
xor edx, edx
mov eax, 0x1f4
call fcn.0040be24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418ff4
lea eax, [ebp - 0xbc]
mov edx, 9
call fcn.004041f0
lea eax, [ebp - 0x4c]
mov edx, 8
call fcn.004041f0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004041f0
lea eax, [ebp + 0x14]
mov edx, 3
call fcn.004041f0
ret