Function at 0x40abce
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492038
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4b3cc4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov edi, esi
call fcn.0040ce10
inc dword [esi + 0x44]
mov eax, dword [esi + 0x44]
cmp eax, dword [esi + 0x40]
jle 0x40a921
mov eax, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, esi
call fcn.0040b8f0
cmp eax, 2
jne 0x40aeda
mov ebx, esi
call fcn.0040c050
cmp eax, 2
jne 0x40aeda
mov eax, dword [esi + 0xd0]
xor ebx, ebx
push ebx
push 0x8000080
push 4
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0xa0], eax
cmp eax, 0xffffffff
jne 0x40a994
mov eax, 3
mov dword [esi + 0xd8], eax
mov dword [esi + 0xdc], 5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x40a9da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esi + 0x9c]
cmp eax, ebx
je 0x40a9c1
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esi + 0x9c], ebx
mov eax, 3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0x20], ebx
ja 0x40a9aa
mov ecx, dword [esi + 0xfc]
mov dword [ebp - 0x18], eax
cmp ecx, ebx
je 0x40aa31
cmp ecx, eax
je 0x40aa2d
cmp dword [esi + 0x100], ebx
jne 0x40aa2a
mov dword [esi + 0xd8], 3
mov dword [esi + 0xdc], 7
call fcn.0040bb30
mov eax, 3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x18], ebx
cmp ecx, ebx
jne 0x40aa39
cmp dword [esi + 0x50], ebx
jne 0x40aa39
mov dword [ebp - 0x18], ebx
cmp dword [esi + 0xe8], ebx
je 0x40aa44
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x1c], ebx
je 0x40aa4c
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp - 0x18]
push esi
call fcn.0040bc80
mov eax, dword [esi + 0x34]
cmp dword [eax - 0xc], ebx
je 0x40aa7a
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x14], esp
mov edi, esp
push eax
call fcn.004021f0
add esp, 4
add eax, 0x10
push esi
mov dword [edi], eax
call fcn.0040bbf0
cmp dword [esi + 0xe8], ebx
je 0x40aa90
lea edx, [esi + 0xec]
push edx
push esi
call fcn.0040bd60
nop
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
mov edi, eax
cmp edi, 2
je 0x40aad1
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x40aabb
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esi + 0x9c], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x9c]
add esi, 0x38
mov eax, 0x16
call fcn.0040eb50
test eax, eax
jne 0x40aaf2
push eax
push eax
call fcn.004688ae
mov eax, dword [edi + 0x9c]
push 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [edi + 0x10c]
push edx
push 0x4000000b
push eax
mov dword [ebp - 0x14], 0x10
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov ebx, 1
test eax, eax
je 0x40ab27
mov dword [edi + 0x108], ebx
call fcn.0046592b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ab41
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x24]
push ecx
push edi
lea edi, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.0040c440
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 0x24]
mov eax, edi
lea ecx, [esi + 0x120]
push eax
mov dword [esi + 0xe4], edx
call fcn.00402060
push esi
call fcn.0040ced0
mov ecx, dword [esi + 0x9c]
push ecx
lea edi, [ebp - 0x28]
call fcn.0040ebe0
add esp, 4
test eax, eax
jne 0x40ab9d
push eax
push eax
call fcn.004688ae
mov eax, dword [ebp - 0x28]
cmp eax, 0x191
ja 0x40ac95
je case.0x40acab.407
lea ecx, [eax - 0xc8]
cmp ecx, 0x6b
ja case.0x40acab.405
movzx edx, byte [ecx + 0x40af64]
jmp dword [edx*4 + 0x40af50]
mov eax, dword [ebp - 0x18]
push eax
call fcn.0040c6c0
mov edi, eax
mov eax, esi
call fcn.0040b300
call fcn.0040bb30
lea ecx, [ebp - 0x14]
cmp edi, ebx
jne 0x40ac4c
mov byte [ebp - 4], 0
call fcn.004013b0
jmp 0x40a8f3
mov eax, esi
mov dword [esi + 0xd8], 2
mov dword [esi + 0xdc], ebx
call fcn.0040b300
call fcn.0040bb30
lea ecx, [ebp - 0x14]
call fcn.004013b0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, esi
call fcn.0040c930
mov edi, eax
call fcn.0040bb30
mov dword [esi + 0x44], 0
lea ecx, [ebp - 0x14]
call fcn.004013b0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp - 0x18]
mov ecx, esi
call fcn.0040ca90
mov edi, eax
mov eax, esi
call fcn.0040b300
call fcn.0040bb30
lea ecx, [ebp - 0x14]
cmp edi, 1
jne 0x40ac4c
mov byte [ebp - 4], 0
call fcn.004013b0
jmp 0x40a8f3
lea ecx, [eax - 0x194]
cmp ecx, 0x63
ja case.0x40acab.405
movzx ecx, byte [ecx + 0x40afe4]
jmp dword [ecx*4 + 0x40afd0]
cmp dword [esi + 0x2c], 0
je 0x40ad5e
mov edi, esi
call fcn.0040d240
mov byte [ebp - 4], 0
test eax, eax
mov eax, dword [ebp - 0x14]
jne 0x40ad03
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40acea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aa90
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40aa90
mov dword [esi + 0xdc], 8
mov eax, esi
mov dword [esi + 0xd8], 3
call fcn.0040b300
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x40ad5e
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esi + 0x9c], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40acde
mov dword [esi + 0xdc], 9
jmp 0x40ad32
mov eax, 3
mov dword [esi + 0xd8], eax
mov dword [esi + 0xdc], eax
mov eax, esi
call fcn.0040b300
call fcn.0040bb30
cmp dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x14]
jne 0x40adbd
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 0
call fcn.004013b0
jmp 0x40a8f3
call fcn.004013b0
jmp 0x40acea
xor ecx, ecx
lea esp, [esp]
cmp ecx, 7
jae 0x40ade2
cmp eax, dword [ecx*4 + 0x499f24]
je 0x40ade2
add ecx, ebx
jmp 0x40add0
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x40adfd
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esi + 0x9c], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov edi, 3
add eax, 0xfffffff0
mov dword [esi + 0xd8], edi
mov dword [esi + 0xdc], edi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ae31
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4