Function at 0x4ad0652b
Capabilities:
Get file size

Disassembly:
push 0xa
push dword [ebp - 0x210]
call fcn.4ad014ac
mov esi, eax
cmp esi, ebx
je 0x4ad1074d
push ebx
push 0x80
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x224]
call fcn.4ad0672c
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 0x4ad066d6
mov eax, dword [ebp - 0x220]
mov al, byte [eax + 0x40]
and al, 1
mov byte [0x4ad24078], al
call fcn.4ad05e8a
cmp esi, ebx
je 0x4ad11945
test al, al
jne 0x4ad141b1
sub esi, 0x4ad385e0
inc esi
inc esi
sar esi, 1
add dword [edi + 8], esi
jmp 0x4ad066e4
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4ad2406c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [0x4ad24074]
xor ebx, ebx
inc eax
cmp edi, ebx
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x218], ebx
je 0x4ad06702
mov ecx, dword [esi + 0x3c]
cmp ecx, ebx
je 0x4ad14119
push eax
push 0x80
lea eax, [ebp - 0x104]
push eax
push ecx
call fcn.4ad0672c
mov eax, dword [edi + 8]
push edi
mov dword [ebp - 0x228], eax
call fcn.4ad0480f
cmp eax, 0xffffffff
mov dword [ebp - 0x208], eax
je 0x4ad1195b
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.4ad0219c
cmp byte [0x4ad24041], bl
mov esi, eax
je 0x4ad065e9
push 4
push str.:EOF
push esi
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x4ad067da
call fcn.4ad04856
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 + 8], eax
jl 0x4ad0661f
cmp dword [ebp - 0x214], ebx
je 0x4ad11217
lea eax, [ebp - 0x20c]
push eax
push 0x200
push 0x4ad385e0
push dword [ebp - 0x208]
call esi
pop ecx
push eax
call fcn.4ad05ebf
test eax, eax
je 0x4ad11217
mov eax, dword [ebp - 0x20c]
cmp eax, ebx
je 0x4ad11223
cmp eax, 0xffffffff
je 0x4ad11217
cmp word [0x4ad385e0], bx
je 0x4ad11217
cmp word [ebp - 0x104], bx
je 0x4ad11217
push 0x3a
push 0x4ad385e0
mov word [eax*2 + 0x4ad385e0], bx
call fcn.4ad014ac
mov esi, eax
cmp esi, ebx
je 0x4ad065e9
mov eax, esi
inc esi
inc esi
cmp word [eax], 0xa
mov dword [ebp - 0x210], eax
je 0x4ad066b1
cmp eax, 0x4ad385e0
je 0x4ad066b1
dec eax
dec eax
jmp 0x4ad0669a
cmp word [eax], 0x3a
je 0x4ad066bf
inc eax
inc eax
mov dword [ebp - 0x210], eax
push ebx
push eax
call fcn.4ad0219c
cmp word [eax], 0x3a
mov dword [ebp - 0x224], eax
je 0x4ad05ee1
push 0x3a
push esi
call fcn.4ad014ac
mov esi, eax
cmp esi, ebx
jne 0x4ad06696
cmp byte [0x4ad24078], 1
jne 0x4ad065e9
push dword [ebp - 0x208]
call fcn.4ad03ebc
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.4ad013fa
leave
ret 4
movzx eax, word [esi + 8]
cmp ax, bx
jne 0x4ad1114b
mov eax, dword [ebp - 0x21c]
mov dword [edi + 8], eax
mov byte [0x4ad24078], 1
jmp 0x4ad066f1
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 0x4ad05ef8
jmp 0x4ad1413c
push eax
call dword [sym.imp.msvcrt.dll_iswspace]
test eax, eax
pop ecx
jne 0x4ad067e7
jmp 0x4ad065e9
cmp dword [ebp - 0x20c], ebx
jne 0x4ad11963
cmp dword [ebp - 0x214], ebx
je 0x4ad11963
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 0x4ad065e9
test al, al
jne 0x4ad141a0
mov eax, dword [ebp - 0x20c]
add dword [edi + 8], eax
jmp 0x4ad066e4
xor eax, eax
inc eax
jmp 0x4ad06702
push edi
call fcn.4ad053dc
jmp 0x4ad141d4
push edi
call fcn.4ad053dc
mov eax, dword [edi + 0x110]
push ebx
push 0x2330
mov dword [0x4ad24074], eax
call fcn.4ad080e2
pop ecx
pop ecx
jmp 0x4ad1195b
mov ecx, dword [ebp - 0x20c]
cmp ecx, 0x200
je 0x4ad05ef8
mov eax, dword [ebp - 0x210]
sub eax, 0x4ad385e0
sar eax, 1
sub ecx, eax
mov esi, ecx
call fcn.4ad05e8a
test al, al
je 0x4ad14181
push ebx
push ebx
push ebx
push ebx
push esi
push 0x4ad385e0
push ebx
push dword [0x4ad24160]
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 0x4ad066e4
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x20c]
push 0x4ad385e0
jmp 0x4ad141c2
push ebx
mov eax, 0x4ad385e0
sub esi, eax
push ebx
inc esi
push ebx
inc esi
push ebx
sar esi, 1
push esi
push eax
push ebx
push dword [0x4ad24160]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x4ad11953
mov eax, dword [edi + 0x110]
mov dword [0x4ad24074], eax
lea eax, [ebp - 0x104]
push eax
xor esi, esi
inc esi
push esi
push 0x400023ab
call fcn.4ad080e2
add esp, 0xc
mov dword [ebp - 0x218], esi
jmp 0x4ad066f1