Function at 0x10ad2cc
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [0x111124c]
mov ebx, 0x111124c
cmp eax, ebx
je 0x10ad307
test byte [eax + 0x1c], 4
je 0x10ad307
cmp byte [eax + 0x19], 4
jb 0x10ad307
mov edi, 0x100b070
push edi
push 0x66
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
jmp 0x10ad30c
mov edi, 0x100b070
cmp byte [esi + 0x40], 0
jne 0x10ad346
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x57
mov eax, dword [0x111124c]
cmp eax, ebx
je 0x10ad33e
test byte [eax + 0x1c], 4
je 0x10ad33e
cmp byte [eax + 0x19], 2
jb 0x10ad33e
push edi
push 0x67
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
push 2
pop eax
jmp 0x10ad65e
cmp dword [esi], 0
je 0x10ad35f
push 0x100b380
push 0x7cf
push 0x100b080
call fcn.0107b4be
mov ecx, dword [esi + 4]
and dword [esi + 0x30], 0
and dword [esi + 0x34], 0
test ecx, ecx
je 0x10ad39f
mov eax, dword [0x111124c]
cmp eax, ebx
je 0x10ad392
test byte [eax + 0x1c], 4
je 0x10ad392
cmp byte [eax + 0x19], 4
jb 0x10ad392
push ecx
push edi
push 0x68
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
and dword [esi + 4], 0
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10ad3a5
sub eax, edx
sar eax, 1
lea edi, [eax + 1]
lea eax, [edi + edi]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esi + 4], eax
test eax, eax
jne 0x10ad3d0
push 8
jmp 0x10ad340
push dword [ebp + 8]
push edi
push eax
call fcn.010a07da
xor edi, edi
cmp eax, edi
jge 0x10ad3f1
mov ecx, dword [ebp + 0x18]
movzx eax, ax
mov dword [ecx], eax
mov ecx, esi
call fcn.010aa918
jmp 0x10ad3c9
cmp byte [esi + 0x41], 0
je 0x10ad52d
mov eax, dword [0x111124c]
cmp eax, ebx
je 0x10ad425
test byte [eax + 0x1c], 4
je 0x10ad425
cmp byte [eax + 0x19], 4
jb 0x10ad425
push dword [ebp + 8]
push 0x100b070
push 0x69
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
push edi
push 0x60000080
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x10ad48f
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov ecx, dword [0x111124c]
cmp ecx, ebx
je 0x10ad3c9
test byte [ecx + 0x1c], 4
je 0x10ad3c9
cmp byte [ecx + 0x19], 2
jb 0x10ad3c9
push eax
push dword [ebp + 8]
push 0x100b070
push 0x6a
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010196ed
jmp 0x10ad3c9
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x10ad4d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov ecx, dword [0x111124c]
cmp ecx, ebx
je 0x10ad3c9
test byte [ecx + 0x1c], 4
je 0x10ad3c9
cmp byte [ecx + 0x19], 2
jb 0x10ad3c9
push eax
push dword [ebp + 8]
push 0x100b070
push 0x6b
jmp 0x10ad47f
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
mov eax, dword [0x111124c]
cmp eax, ebx
je 0x10ad510
test byte [eax + 0x1c], 4
je 0x10ad510
cmp byte [eax + 0x19], 4
jb 0x10ad510
push edx
push ecx
push dword [ebp + 8]
push 0x100b070
push 0x6c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019e9a
cmp byte [esi + 0x40], 0
je 0x10ad62e
mov ecx, esi
call fcn.010abbd3
mov ecx, esi
call fcn.010abca2
jmp 0x10ad62e
push edi
push 0x60000080
push 2
push edi
push edi
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x10ad58c
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov ecx, dword [0x111124c]
cmp ecx, ebx
je 0x10ad585
test byte [ecx + 0x1c], 4
je 0x10ad585
cmp byte [ecx + 0x19], 2
jb 0x10ad585
push eax
push dword [ebp + 8]
push 0x100b070
push 0x6d
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010196ed
push 7
jmp 0x10ad340
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x10], eax
or eax, ecx
mov dword [esi + 0x14], ecx
jne 0x10ad5a7
or dword [esi + 0x10], 0xffffffff
mov dword [esi + 0x14], 0x7fffffff
mov eax, dword [esi + 0x64]
sub eax, dword [esi + 0x78]
mov ecx, 0x200200
inc eax
mul ecx
mov edi, eax
xor eax, eax
cmp byte [esi + 0x28], al
mov ecx, edx
sete al
dec eax
and eax, 0xffdffe00
add eax, 0x200400
cdq
add edi, eax
adc ecx, edx
cmp ecx, dword [ebp + 0x10]
jl 0x10ad5e3
jg 0x10ad5dd
cmp edi, dword [ebp + 0xc]
jbe 0x10ad5e3
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
and dword [esi + 0xf8], 0
and dword [esi + 0xfc], 0
mov dword [esi + 0xf0], edi
mov dword [esi + 0xf4], ecx
mov eax, dword [0x111124c]
cmp eax, ebx
je 0x10ad62e
test byte [eax + 0x1c], 4
je 0x10ad62e
cmp byte [eax + 0x19], 4
jb 0x10ad62e
push dword [esi + 0x14]
push dword [esi + 0x10]
push ecx
push edi
push ecx
push edi
push 0x100b070
push 0x6e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010aa6b0
mov eax, dword [esi]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [0x111124c]
cmp eax, ebx
je 0x10ad65c
test byte [eax + 0x1c], 4
je 0x10ad65c
cmp byte [eax + 0x19], 4
jb 0x10ad65c
push 0x100b070
push 0x6f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14