Function at 0x4ad0a20e
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4ad33b78]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
xor eax, eax
push edi
mov edi, dword [0x4ad2fac4]
xor ebx, ebx
inc eax
cmp edi, ebx
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x218], ebx
je 0x4ad0a2fc
mov ecx, dword [esi + 0x3c]
cmp ecx, ebx
je 0x4ad12170
push eax
push 0x100
lea eax, [ebp - 0x104]
push eax
push ecx
call fcn.4ad0a310
mov eax, dword [edi + 4]
push edi
mov dword [ebp - 0x228], eax
call fcn.4ad0697c
cmp eax, 0xffffffff
mov dword [ebp - 0x208], eax
je 0x4ad1218e
push ebx
push eax
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push dword [esi + 0x3c]
mov dword [ebp - 0x21c], eax
call fcn.4ad02b6b
cmp byte [0x4ad2fa64], bl
mov esi, eax
je 0x4ad0a497
push 4
push str.:EOF
push esi
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x4ad0a497
movzx esi, word [esi + 8]
cmp si, bx
jne 0x4ad12196
mov eax, dword [ebp - 0x21c]
mov dword [edi + 4], eax
mov byte [0x4ad2faa0], 1
push dword [ebp - 0x208]
call fcn.4ad02e00
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.4ad01305
leave
ret 4
cmp eax, 0x4ad250a0
je 0x4ad0a453
dec eax
dec eax
cmp word [eax], 0xa
mov dword [ebp - 0x210], eax
jne 0x4ad0a43e
cmp word [eax], 0x3a
je 0x4ad0a461
inc eax
inc eax
mov dword [ebp - 0x210], eax
push ebx
push eax
call fcn.4ad02b6b
cmp word [eax], 0x3a
mov dword [ebp - 0x224], eax
je 0x4ad0a54d
push 0x3a
push esi
call fcn.4ad01323
mov esi, eax
cmp esi, ebx
jne 0x4ad0a544
cmp byte [0x4ad2faa0], 1
je 0x4ad0a2eb
call fcn.4ad05bed
mov esi, dword [sym.imp.msvcrt.dll__get_osfhandle]
push 1
push ebx
push ebx
push dword [ebp - 0x208]
call esi
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [ebp - 0x228]
mov dword [edi + 4], eax
jl 0x4ad0a4cd
cmp dword [ebp - 0x214], ebx
je 0x4ad0a5df
lea eax, [ebp - 0x20c]
push eax
push 0x200
push 0x4ad250a0
push dword [ebp - 0x208]
call esi
pop ecx
push eax
call fcn.4ad071e5
test eax, eax
je 0x4ad0a5df
mov eax, dword [ebp - 0x20c]
cmp eax, ebx
je 0x4ad1226d
cmp eax, 0xffffffff
je 0x4ad0a5df
cmp word [0x4ad250a0], bx
je 0x4ad0a5df
cmp word [ebp - 0x104], bx
je 0x4ad0a5df
push 0x3a
push 0x4ad250a0
mov word [eax*2 + 0x4ad250a0], bx
call fcn.4ad01323
mov esi, eax
cmp esi, ebx
je 0x4ad0a497
mov eax, esi
inc esi
inc esi
jmp 0x4ad0a447
push 0xa
push dword [ebp - 0x210]
call fcn.4ad01323
mov esi, eax
cmp esi, ebx
je 0x4ad121a2
push ebx
push 0x100
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x224]
call fcn.4ad0a310
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x4ad0a478
mov eax, dword [ebp - 0x220]
mov al, byte [eax + 0x40]
and al, 1
mov byte [0x4ad2faa0], al
call fcn.4ad071bc
cmp esi, ebx
je 0x4ad1222a
test al, al
jne 0x4ad1225a
sub esi, 0x4ad250a0
inc esi
inc esi
sar esi, 1
add dword [edi + 4], esi
jmp 0x4ad0a48a
test eax, eax
pop ecx
jne 0x4ad0a2db
jmp 0x4ad0a497
cmp dword [ebp - 0x20c], ebx
je 0x4ad1226d
jmp 0x4ad12293
push edi
call fcn.4ad06b8e
mov eax, dword [edi + 0xf4]
push ebx
push 0x2330
mov dword [0x4ad2fac4], eax
call fcn.4ad05fb5
pop ecx
pop ecx
xor eax, eax
inc eax
jmp 0x4ad0a2fc
push esi
call dword [sym.imp.msvcrt.dll_iswspace]
jmp 0x4ad0a5d1
push 1
push ebx
push ebx
push dword [ebp - 0x208]
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [ebp - 0x21c]
je 0x4ad0a564
mov ecx, dword [ebp - 0x20c]
cmp ecx, 0x200
je 0x4ad0a564
mov eax, dword [ebp - 0x210]
sub eax, 0x4ad250a0
sar eax, 1
sub ecx, eax
mov esi, ecx
call fcn.4ad071bc
test al, al
je 0x4ad1220b
push ebx
push ebx
push ebx
push ebx
push esi
push 0x4ad250a0
push ebx
push dword [0x4ad2b9ec]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
push 1
push ebx
neg esi
push esi
push dword [ebp - 0x208]
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4ad0a48a
test al, al
je 0x4ad12252
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x20c]
push 0x4ad250a0
push ebx
push dword [0x4ad2b9ec]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add dword [edi + 4], eax
jmp 0x4ad0a48a
mov eax, dword [ebp - 0x20c]
jmp 0x4ad1224a
push ebx
mov eax, 0x4ad250a0
sub esi, eax
push ebx
inc esi
push ebx
inc esi
push ebx
sar esi, 1
push esi
push eax
jmp 0x4ad1223d
cmp dword [ebp - 0x214], ebx
je 0x4ad12293
push ebx
push ebx
push ebx
push dword [ebp - 0x208]
call esi
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x214], ebx
jmp 0x4ad0a497
push edi
call fcn.4ad06b8e
mov eax, dword [edi + 0xf4]
mov dword [0x4ad2fac4], eax
lea eax, [ebp - 0x104]
push eax
xor esi, esi
inc esi
push esi
push 0x23ab
call fcn.4ad05fb5
add esp, 0xc
mov dword [ebp - 0x218], esi
jmp 0x4ad0a2eb