Function at 0x10084f34
Capabilities:
Get file size

Disassembly:
push 0x8c
push 0x10092488
call fcn.10063360
mov ebx, ecx
mov dword [ebp - 0x98], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x68], 0x80004021
mov dword [ebp - 0x78], 2
xor edi, edi
inc edi
mov dword [ebp - 0x80], edi
xor esi, esi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x6c], esi
lea eax, [ebx + 8]
push eax
lea ecx, [ebp - 0x9c]
call fcn.10086bf0
lea ecx, [ebp - 0x9c]
call fcn.10086c10
mov dword [ebp - 4], esi
mov dword [ebp - 4], edi
mov ecx, ebx
call fcn.10084a31
lea edi, [ebx + 0x358]
lea eax, [ebp - 0x74]
push eax
push edi
push dword [ebp - 0x70]
call fcn.10082b6c
cmp eax, esi
jne 0x1008504b
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x350], eax
cmp eax, 0xffffffff
jne 0x10084fef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x10084fe7
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x68], eax
jmp 0x1008531f
push esi
push esi
push dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10084fd3
cmp eax, dword [edi]
je 0x1008500f
mov dword [ebp - 0x68], 0x80070019
jmp 0x1008531f
push esi
push dword [ebx + 0x350]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebx + 0x354], eax
cmp eax, 0xffffffff
je 0x10084fd3
sub eax, dword [edi]
mov dword [ebx + 0x354], eax
mov ecx, dword [ebp - 0x74]
cmp ecx, eax
jae 0x1008503c
mov dword [ebx + 0x354], ecx
mov byte [ebx + 0x34c], 1
mov dword [ebp - 0x68], esi
jmp 0x1008531f
push 0x10024654
push dword [ebp - 0x70]
call fcn.10086ffc
pop ecx
pop ecx
mov dword [ebx + 0x340], eax
cmp eax, esi
jne 0x10085070
call fcn.100655b1
mov eax, dword [eax]
jmp 0x10084fd9
cmp dword [ebx + 0x48], esi
jne 0x1008508b
push 0x10024644
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebx + 0x48], eax
cmp eax, esi
je 0x10085147
mov ecx, ebx
call fcn.10084194
cmp eax, esi
jne 0x1008515f
lea eax, [ebx + 0x70]
lea esi, [ebx + 0x20]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push esi
push eax
push dword [ebx + 0x340]
call dword [ebx + 0x34]
add esp, 0x20
cmp eax, esi
jge 0x100850d7
mov dword [ebp - 0x68], eax
push dword [ebx + 0x340]
call fcn.100644d4
mov dword [ebx + 0x340], esi
jmp 0x1008515e
push 0xffffffffffffffff
lea edi, [ebx + 0x70]
push edi
call dword [ebx + 0x40]
pop ecx
pop ecx
mov esi, eax
test esi, esi
jne 0x1008510c
mov dword [ebp - 0x68], 0x80004003
push edi
call dword [ebx + 0x30]
push dword [ebx + 0x340]
call fcn.100644d4
pop ecx
pop ecx
and dword [ebx + 0x340], 0
jmp 0x1008531d
push 0xffffffffffffffff
push edi
call dword [ebx + 0x38]
pop ecx
pop ecx
lea ecx, [ebx + 0x348]
mov dword [ecx], eax
mov edx, dword [esi + 4]
imul edx, eax
add edx, edx
mov dword [ecx], edx
cmp dword [esi + 4], 2
jne 0x1008513e
cmp dword [esi + 8], 0xac44
jne 0x1008513e
mov byte [ebx + 0x60], 1
jmp 0x10085319
mov dword [ebp - 0x68], 0x800700a0
jmp 0x100850ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebx + 0x340]
call fcn.100644d4
mov dword [ebx + 0x340], esi
pop ecx
cmp dword [ebx + 0x58], esi
jne 0x10085172
push 0x10024638
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebx + 0x58], eax
mov eax, dword [ebx + 0x58]
cmp eax, esi
je 0x10084fd3
push 0x10024624
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x10084fd3
lea edi, [ebx + 0x4c]
push edi
push esi
push esi
call eax
mov dword [ebp - 0x68], eax
cmp eax, esi
jl 0x1008531f
push 0xc
call fcn.10062b5c
pop ecx
cmp eax, esi
je 0x100851b9
mov ecx, eax
call fcn.10086bd7
jmp 0x100851bb
xor eax, eax
mov dword [ebx + 0x50], eax
cmp eax, esi
jne 0x100851ce
mov dword [ebp - 0x68], 0x8007000e
jmp 0x1008531f
push dword [ebp - 0x70]
mov ecx, eax
call fcn.100867d9
mov dword [ebp - 0x68], eax
cmp eax, esi
jl 0x1008531f
mov eax, dword [edi]
mov ecx, dword [eax]
push dword [ebx + 0x50]
push eax
call dword [ecx + 0x5c]
mov dword [ebp - 0x68], eax
cmp eax, esi
jl 0x1008531f
mov eax, dword [edi]
mov ecx, dword [eax]
lea edx, [ebp - 0x78]
push edx
lea edx, [ebp - 0x80]
push edx
push 1
push eax
call dword [ecx + 0x20]
mov dword [ebp - 0x68], eax
cmp eax, esi
jl 0x1008531f
mov eax, dword [edi]
mov ecx, dword [eax]
push esi
push 1
push eax
call dword [ecx + 0x28]
mov dword [ebp - 0x68], eax
cmp eax, esi
jl 0x1008531f
mov edi, dword [edi]
mov eax, dword [edi]
lea ecx, [ebp - 0x6c]
push ecx
push esi
push edi
call dword [eax + 0x3c]
mov dword [ebp - 0x68], eax
cmp eax, esi
jl 0x1008531f
xor eax, eax
lea edi, [ebp - 0x94]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
inc eax
mov word [ebp - 0x94], ax
push 2
pop eax
mov word [ebp - 0x92], ax
mov dword [ebp - 0x90], 0xac44
mov dword [ebp - 0x8c], 0x2b110
push 4
pop eax
mov word [ebp - 0x88], ax
push 0x10
pop eax
mov word [ebp - 0x86], ax
xor eax, eax
mov word [ebp - 0x84], ax
push 0x48
push esi
lea eax, [ebp - 0x64]
push eax
call fcn.100620c0
add esp, 0xc
mov esi, 0x100244b8
lea edi, [ebp - 0x64]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x100244c8
lea edi, [ebp - 0x54]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x44], 1
and dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 4
mov esi, 0x100244d8
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
and dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0x12
lea eax, [ebp - 0x94]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax]
lea edx, [ebp - 0x64]
push edx
push eax
call dword [ecx + 0x14]
mov dword [ebp - 0x68], eax
test eax, eax
jl 0x1008531d
mov eax, dword [ebx + 0x4c]
mov ecx, dword [eax]
push dword [ebp - 0x6c]
push 0
push eax
call dword [ecx + 0x40]
mov dword [ebp - 0x68], eax
test eax, eax
jl 0x1008531d
and dword [ebp - 0x68], 0
xor esi, esi
mov dword [ebp - 4], esi
call fcn.10085331
jmp 0x10085375
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x68]
call fcn.100633a8
ret 4