Function at 0x1003e060
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bf3f5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x160
mov eax, dword [0x100fb03c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xf0], edi
mov esi, dword [ebx + 8]
push 4
mov dword [ebp - 0x114], esi
mov dword [edi + 0xb0], 0
mov dword [ebp - 0x18], 0
call fcn.100881bb
add esp, 4
mov dword [ebp - 0xf4], eax
mov dword [ebp - 4], 0
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 1
mov ecx, esi
call fcn.10004780
push eax
lea ecx, [ebp - 0x140]
call fcn.10004920
mov byte [ebp - 4], 2
lea eax, [ebp - 0x140]
push 0x80
push 3
push 1
push 0xc0000000
push eax
lea ecx, [ebp - 0x18]
call fcn.10018bc0
mov byte [ebp - 0xe9], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x140]
call fcn.10004840
cmp byte [ebp - 0xe9], 0
jne 0x1003e15f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xb0], eax
mov edi, 2
jmp 0x1003e458
xorps xmm0, xmm0
movlpd qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 3
push 8
call fcn.100881bb
mov esi, eax
mov dword [ebp - 0xf4], esi
mov byte [ebp - 4], 4
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi], vtable.RC::RCInternetHandle.0
mov dword [esi + 4], 0
mov byte [ebp - 4], 5
sub esp, 0x10
mov dword [esi], vtable.RC::RCInternetSession.0
call fcn.10069890
mov ecx, eax
call fcn.10069fa0
mov dword [esi + 4], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
push esi
call fcn.1003f9f0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x24], 0
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x30], 4
push eax
push 0x49
push 0
call fcn.10069890
mov ecx, eax
call fcn.1006a0e0
test eax, eax
je 0x1003e1f9
cmp dword [ebp - 0x24], 0x40
jae 0x1003e215
push ecx
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x40
push eax
push 0x49
push 0
call fcn.10069890
mov ecx, eax
call fcn.1006a220
lea eax, [ebp - 0x30]
mov dword [ebp - 0x24], 0
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x30], 4
push eax
push 0x4a
push 0
call fcn.10069890
mov ecx, eax
call fcn.1006a0e0
test eax, eax
je 0x1003e245
cmp dword [ebp - 0x24], 0x40
jae 0x1003e261
push ecx
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0x40
push eax
push 0x4a
push 0
call fcn.10069890
mov ecx, eax
call fcn.1006a220
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0
mov byte [ebp - 4], 6
mov dword [ebp - 0x11c], 0
mov byte [ebp - 4], 7
lea eax, [edi + 0xa0]
mov dword [ebp - 0x128], eax
lea esi, [edi + 0xac]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x11c], esi
push eax
lea ecx, [ebp - 0x124]
call fcn.1003f940
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x108], esi
test esi, esi
je 0x1003e2d9
mov eax, dword [esi]
test eax, eax
je 0x1003e2d9
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 8
lea ecx, [edi + 0xa0]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x118], eax
cmp dword [ecx + 8], edx
je 0x1003e32d
push edx
push 8
call fcn.10002180
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x118]
mov dword [ecx], 0
mov dword [ecx + 4], 0
test eax, eax
je 0x1003e31c
lock inc dword [eax + 4]
mov edx, dword [ebp - 0x2c]
mov dword [ecx], edx
mov dword [ecx + 4], eax
add dword [edi + 0xa4], 8
jmp 0x1003e337
lea eax, [ebp - 0x2c]
push eax
push edx
call fcn.10018310
test esi, esi
je 0x1003e350
mov eax, dword [esi]
test eax, eax
je 0x1003e348
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor esi, esi
mov dword [ebp - 0x108], esi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1003e3c7
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x1003e3c7
lea ecx, [ebp - 0x44]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xf8], eax
cmp eax, 0xffffffff
jne 0x1003e384
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1003e3c7
mov eax, dword [ebp - 0xf8]
xor ecx, ecx
add ecx, eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x110], ecx
adc eax, 0
mov dword [ebp - 0x10c], eax
jne 0x1003e3a4
cmp ecx, 0x10000
jbe 0x1003e3c7
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x18]
call fcn.10018e30
test al, al
jne 0x1003e4b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xb0], eax
mov edi, 2
mov byte [ebp - 4], 7
test esi, esi
je 0x1003e3eb
mov eax, dword [esi]
test eax, eax
je 0x1003e3e1
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x108], 0
mov byte [ebp - 4], 0x23
lea ecx, [ebp - 0x128]
call fcn.1003c190
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x120]
test esi, esi
je 0x1003e429
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x1003e429
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x1003e429
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x118]
test esi, esi
je 0x1003e458
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x1003e458
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x1003e458
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x1003e490
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1003e47e
test eax, eax
je 0x1003e47e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.1008854e
add esp, 8
mov dword [ebp - 0x18], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100881a5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
mov eax, dword [ebp - 0x110]
xorps xmm0, xmm0
add eax, 0xffff8000
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0x10c]
adc eax, 0xffffffff
push 0x28
mov dword [ebp - 0xfc], eax
call fcn.100881bb
add esp, 4
mov dword [ebp - 0xf4], eax
mov byte [ebp - 4], 9
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov ecx, eax
movups xmmword [eax + 0x10], xmm0
movq qword [eax + 0x20], xmm0
call fcn.1005c110
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x20]
push dword [ebp - 0xf4]
mov dword [ebp - 0x20], 0
push eax
mov dword [ebp - 0x1c], 0
call fcn.1003fbe0
mov byte [ebp - 4], 0xa
add edi, 0xe4
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xf8], edi
je 0x1003e54e
mov eax, dword [edi]
test eax, eax
je 0x1003e54e
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 0xf0]
push eax
add ecx, 0xe8
call fcn.1003faa0
mov byte [ebp - 4], 0xa
test edi, edi
je 0x1003e586
mov eax, dword [edi]
test eax, eax
je 0x1003e57c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0xf8], 0
push dword [ebp - 0xfc]
mov edi, dword [ebp - 0xf0]
mov ecx, edi
push dword [ebp - 0x100]
push dword [ebp - 0x2c]
push dword [ebp - 0x20]
call fcn.1003f220
test al, al
je 0x1003e958
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0xe8]
push eax
call fcn.1005d830
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xe8]
call fcn.1006ac70
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0x104], edx
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xe8]
call fcn.10004840
mov eax, dword [ebp - 0x10c]
cmp eax, dword [ebp - 0x104]
ja 0x1003e958
jb 0x1003e60c
mov eax, dword [ebp - 0x110]
cmp eax, dword [ebp - 0xf0]
ja 0x1003e958
mov ecx, dword [edi + 0x78]
mov eax, ecx
mov edx, dword [edi + 0x7c]
or eax, edx
je 0x1003e639
mov eax, ecx
and eax, edx
cmp eax, 0xffffffff
je 0x1003e639
cmp dword [ebp - 0xf0], ecx
jne 0x1003e958
cmp dword [ebp - 0x104], edx
jne 0x1003e958
push ecx
push dword [ebp - 0x20]
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.1003f020
cmp eax, 1
je 0x1003e958
cmp eax, 5
je 0x1003e958
cmp eax, 2
je 0x1003e954
cmp eax, 3
je 0x1003e954
lea eax, [edi + 0x10]
push eax
lea ecx, [ebp - 0xb8]
call fcn.1003bfd0
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0xb8]
push eax
push dword [ebp - 0x20]
call fcn.1003f480
movzx ecx, byte [ebp - 0x90]
test al, al
mov edx, 1
cmove ecx, edx
mov edx, dword [ebp - 0x9c]
mov byte [ebp - 0x90], cl
mov ecx, dword [ebp - 0xa0]
test edx, edx
ja 0x1003e6c9
jb 0x1003e6bf
cmp ecx, 0x8000
jae 0x1003e6c9
mov edi, 2
jmp 0x1003e943
mov eax, ecx
and eax, edx
cmp eax, 0xffffffff
je 0x1003e6e7
add ecx, 0xffff8000
mov dword [ebp - 0xa0], ecx
adc edx, 0xffffffff
mov dword [ebp - 0x9c], edx
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0x94], eax
mov eax, dword [edi + 0x98]
mov dword [ebp - 0xf4], eax
test eax, eax
je 0x1003e810
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x74]
push eax
call fcn.1005d7a0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x74]
call fcn.100051f0
test eax, eax
jne 0x1003e7b7
push 0xffffffffffffffff
push 0x100de980
lea ecx, [edi + 0x10]
call fcn.10009af0
cmp eax, 0xffffffff
je 0x1003e7b7
push 0xffffffffffffffff
inc eax
lea ecx, [edi + 0x10]
push eax
lea eax, [ebp - 0x158]
push eax
call fcn.1000bf00
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x74]
push eax
call fcn.100048a0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x158]
call fcn.10004840
push ecx
push 0x100df6ac
lea ecx, [ebp - 0x74]
call fcn.10016d90
cmp eax, 0xffffffff
je 0x1003e7b7
push eax
push 0
lea eax, [ebp - 0x170]
push eax
lea ecx, [ebp - 0x74]
call fcn.1000bf00
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x74]
push eax
call fcn.100048a0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x170]
call fcn.10004840
push dword [ebp - 0xfc]
mov ecx, dword [ebp - 0xf4]
lea edx, [ebp - 0x8e]
push dword [ebp - 0x100]
push dword [ebp - 0x104]
mov eax, dword [ecx]
push dword [ebp - 0xf0]
push edx
push dword [ebp - 0x114]
mov eax, dword [eax + 4]
lea edx, [ebp - 0x74]
push edx
call eax
test al, al
jne 0x1003e804
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x74]
call fcn.10004840
xor edi, edi
jmp 0x1003e943
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x74]
call fcn.10004840
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
mov dword [ebp - 0x38], vtable.RC::ISimpleDownloadDataEvent.0
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x18]
mov dword [ebp - 0x38], vtable.DL::TSimpleDownloadDataEvent.0
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0xb8]
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x38]
mov ecx, edi
push eax
call fcn.1003f550
test al, al
je 0x1003e92b
lea ecx, [ebp - 0x18]
call fcn.10018cf0
lea ecx, [edi + 0x80]
call fcn.100051f0
test eax, eax
je 0x1003e924
xorps xmm0, xmm0
lea ecx, [ebp - 0x5c]
movups xmmword [ebp - 0x5c], xmm0
movq qword [ebp - 0x4c], xmm0
call fcn.10018080
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x5c]
push dword [ebp - 0x114]
call fcn.100187a0
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0x5c]
call fcn.10018230
mov byte [ebp - 4], 0x16
lea eax, [edi + 0x80]
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.1000e690
add esp, 8
test al, al
jne 0x1003e8fa
mov dword [edi + 0xb0], 0
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0xd0]
call fcn.10004840
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x50]
call fcn.100140c0
mov byte [ebp - 4], 0x14
mov edi, 2
mov dword [ebp - 0x5c], vtable.RC::RCFileHash.0
mov byte [ebp - 0x54], 1
jmp 0x1003e92d
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0xd0]
call fcn.10004840
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x50]
call fcn.100140c0
mov byte [ebp - 4], 0x14
mov dword [ebp - 0x5c], vtable.RC::RCFileHash.0
mov byte [ebp - 0x54], 1
mov edi, 1
jmp 0x1003e92d
xor edi, edi
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x38], vtable.DL::TSimpleDownloadDataEvent.0
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x38], vtable.RC::ISimpleDownloadDataEvent.0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xb8]
call fcn.10004840
jmp 0x1003e95d
xor edi, edi
jmp 0x1003e95d
mov edi, 2
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x1003e3cc
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x1003e3cc
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x1c]
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x1003e3cc
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1003e3cc