Function at 0x10ad18d
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 [0x111024c]
mov ebx, 0x111024c
cmp eax, ebx
je 0x10ad1c8
test byte [eax + 0x1c], 4
je 0x10ad1c8
cmp byte [eax + 0x19], 4
jb 0x10ad1c8
mov edi, 0x100b080
push edi
push 0x66
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
jmp 0x10ad1cd
mov edi, 0x100b080
cmp byte [esi + 0x40], 0
jne 0x10ad207
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x57
mov eax, dword [0x111024c]
cmp eax, ebx
je 0x10ad1ff
test byte [eax + 0x1c], 4
je 0x10ad1ff
cmp byte [eax + 0x19], 2
jb 0x10ad1ff
push edi
push 0x67
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
push 2
pop eax
jmp 0x10ad51f
cmp dword [esi], 0
je 0x10ad220
push 0x100b390
push 0x7cf
push 0x100b090
call fcn.0107b644
mov ecx, dword [esi + 4]
and dword [esi + 0x30], 0
and dword [esi + 0x34], 0
test ecx, ecx
je 0x10ad260
mov eax, dword [0x111024c]
cmp eax, ebx
je 0x10ad253
test byte [eax + 0x1c], 4
je 0x10ad253
cmp byte [eax + 0x19], 4
jb 0x10ad253
push ecx
push edi
push 0x68
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
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 0x10ad266
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 0x10ad291
push 8
jmp 0x10ad201
push dword [ebp + 8]
push edi
push eax
call fcn.010a06c8
xor edi, edi
cmp eax, edi
jge 0x10ad2b2
mov ecx, dword [ebp + 0x18]
movzx eax, ax
mov dword [ecx], eax
mov ecx, esi
call fcn.010aa7d9
jmp 0x10ad28a
cmp byte [esi + 0x41], 0
je 0x10ad3ee
mov eax, dword [0x111024c]
cmp eax, ebx
je 0x10ad2e6
test byte [eax + 0x1c], 4
je 0x10ad2e6
cmp byte [eax + 0x19], 4
jb 0x10ad2e6
push dword [ebp + 8]
push 0x100b080
push 0x69
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
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 0x10ad350
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov ecx, dword [0x111024c]
cmp ecx, ebx
je 0x10ad28a
test byte [ecx + 0x1c], 4
je 0x10ad28a
cmp byte [ecx + 0x19], 2
jb 0x10ad28a
push eax
push dword [ebp + 8]
push 0x100b080
push 0x6a
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01048c37
jmp 0x10ad28a
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x10ad399
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov ecx, dword [0x111024c]
cmp ecx, ebx
je 0x10ad28a
test byte [ecx + 0x1c], 4
je 0x10ad28a
cmp byte [ecx + 0x19], 2
jb 0x10ad28a
push eax
push dword [ebp + 8]
push 0x100b080
push 0x6b
jmp 0x10ad340
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
mov eax, dword [0x111024c]
cmp eax, ebx
je 0x10ad3d1
test byte [eax + 0x1c], 4
je 0x10ad3d1
cmp byte [eax + 0x19], 4
jb 0x10ad3d1
push edx
push ecx
push dword [ebp + 8]
push 0x100b080
push 0x6c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01100308
cmp byte [esi + 0x40], 0
je 0x10ad4ef
mov ecx, esi
call fcn.010aba94
mov ecx, esi
call fcn.010abb63
jmp 0x10ad4ef
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 0x10ad44d
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov ecx, dword [0x111024c]
cmp ecx, ebx
je 0x10ad446
test byte [ecx + 0x1c], 4
je 0x10ad446
cmp byte [ecx + 0x19], 2
jb 0x10ad446
push eax
push dword [ebp + 8]
push 0x100b080
push 0x6d
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01048c37
push 7
jmp 0x10ad201
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x10], eax
or eax, ecx
mov dword [esi + 0x14], ecx
jne 0x10ad468
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 0x10ad4a4
jg 0x10ad49e
cmp edi, dword [ebp + 0xc]
jbe 0x10ad4a4
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 [0x111024c]
cmp eax, ebx
je 0x10ad4ef
test byte [eax + 0x1c], 4
je 0x10ad4ef
cmp byte [eax + 0x19], 4
jb 0x10ad4ef
push dword [esi + 0x14]
push dword [esi + 0x10]
push ecx
push edi
push ecx
push edi
push 0x100b080
push 0x6e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010aa539
mov eax, dword [esi]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [0x111024c]
cmp eax, ebx
je 0x10ad51d
test byte [eax + 0x1c], 4
je 0x10ad51d
cmp byte [eax + 0x19], 4
jb 0x10ad51d
push 0x100b080
push 0x6f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14