Function at 0x4ad0e46c
Capabilities:
Read file on windows

Disassembly:
inc esi
inc esi
jmp 0x4ad0e8ea
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
xor esi, esi
inc esi
push 0x4ad0576c
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x40], 0x3b
call fcn.4ad045d8
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x4c]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x1c], ebx
cmp eax, ebx
je 0x4ad0e6c9
mov ecx, eax
mov dword [ebp - 4], ecx
movzx eax, word [ecx]
cmp ax, 0x22
jne 0x4ad14904
movzx eax, ax
inc ecx
inc ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], ecx
cmp ecx, ebx
je 0x4ad0e6c9
mov ebx, dword [sym.imp.msvcrt.dll__wcsnicmp]
movzx eax, word [ecx]
test ax, ax
je 0x4ad0e623
cmp ax, 0x20
jbe 0x4ad10444
mov esi, dword [ebp - 0x2c]
cmp word [ecx], si
je 0x4ad0e623
push 8
push 0x4ad0ea54
push ecx
call ebx
add esp, 0xc
test eax, eax
je 0x4ad14916
push 7
push 0x4ad0ea44
push dword [ebp - 4]
call ebx
add esp, 0xc
test eax, eax
je 0x4ad14926
push 4
push 0x4ad0ea38
push dword [ebp - 4]
call ebx
add esp, 0xc
test eax, eax
je 0x4ad14936
push 7
push 0x4ad0ea28
push dword [ebp - 4]
call ebx
add esp, 0xc
test eax, eax
je 0x4ad0ea87
push 5
push 0x4ad0ea1c
push dword [ebp - 4]
call ebx
add esp, 0xc
test eax, eax
je 0x4ad1046f
push 7
push 0x4ad0ea0c
push dword [ebp - 4]
call ebx
add esp, 0xc
test eax, eax
jne 0x4ad14949
add dword [ebp - 4], 0xe
mov eax, dword [ebp - 4]
movzx eax, word [eax]
xor edi, edi
mov dword [ebp - 0x28], edi
cmp ax, di
je 0x4ad0e610
cmp ax, word [ebp - 0x2c]
je 0x4ad0e610
cmp ax, 0x2a
je 0x4ad0f675
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_wcstol]
mov esi, eax
add esp, 0xc
test esi, esi
jle 0x4ad14949
mov eax, dword [ebp - 4]
cmp word [eax], 0x2d
je 0x4ad0f645
mov eax, esi
cmp eax, 0x20
jge 0x4ad0e5f1
cmp esi, eax
jg 0x4ad0e5f1
sub eax, esi
inc eax
lea ecx, [esi - 1]
add edi, eax
xor edx, edx
inc edx
shl edx, cl
or dword [ebp - 0x28], edx
inc ecx
dec eax
jne 0x4ad0e5e5
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x2c
jne 0x4ad0ea78
add dword [ebp - 4], 2
mov eax, dword [ebp - 4]
movzx eax, word [eax]
test ax, ax
jne 0x4ad0e599
cmp edi, dword [ebp - 0xc]
jle 0x4ad0e618
mov dword [ebp - 0xc], edi
mov ecx, dword [ebp - 4]
test ecx, ecx
jne 0x4ad0e4db
cmp dword [ebp - 0xc], 1
jle 0x4ad0e6c7
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp - 0xc]
lea esi, [edi + eax]
lea eax, [esi + esi + 2]
push eax
push dword [0x4ad240bc]
call fcn.4ad02536
mov dword [0x4ad240bc], eax
lea eax, [esi*4 + 4]
push eax
push dword [0x4ad240c0]
call fcn.4ad02536
cmp dword [0x4ad240bc], 0
mov dword [0x4ad240c0], eax
je 0x4ad14963
test eax, eax
je 0x4ad14963
xor edx, edx
inc edx
cmp edi, edx
jle 0x4ad0e6b6
mov eax, dword [ebp + 0xc]
lea ecx, [eax*4 + 4]
lea eax, [eax + eax + 2]
mov esi, dword [ebp + 8]
mov si, word [esi + 0x44]
mov edi, dword [0x4ad240bc]
add si, dx
mov word [edi + eax], si
mov esi, dword [0x4ad240c0]
and dword [esi + ecx], 0
inc edx
inc eax
inc eax
add ecx, 4
cmp edx, dword [ebp - 0xc]
jl 0x4ad0e68d
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x4ad240bc]
add edx, eax
xor eax, eax
mov word [ecx + edx*2], ax
xor ebx, ebx
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x3c]
mov dword [ebp - 8], edi
cmp dword [ebp - 0x1c], ebx
jne 0x4ad1497b
mov dword [ebp - 0x30], 0x27
mov dword [ebp - 0x34], 0x22
cmp edi, ebx
je 0x4ad0e6fc
movzx eax, word [edi]
cmp ax, word [ebp - 0x30]
je 0x4ad0e709
cmp ax, word [ebp - 0x34]
je 0x4ad0e709
push ebx
push ebx
push edi
call fcn.4ad022ca
mov edi, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x48], ebx
cmp word [edi], bx
je 0x4ad0e9d7
cmp byte [0x4ad240b8], 0
jne 0x4ad0e9d7
call fcn.4ad0dfff
call fcn.4ad04b2a
mov eax, dword [ebp - 0x50]
and dword [ebp - 4], 0
and dword [ebp - 0x18], 0
mov dword [ebp - 0x14], eax
mov eax, edi
push 2
lea ecx, [eax + 2]
pop esi
mov dx, word [eax]
add eax, esi
test dx, dx
jne 0x4ad0e748
mov edx, dword [ebp - 0x30]
sub eax, ecx
sar eax, 1
mov ecx, eax
movzx eax, word [edi]
mov dword [ebp - 0x1c], ecx
cmp ax, dx
je 0x4ad0fa44
mov edx, dword [ebp - 0x34]
cmp ax, dx
je 0x4ad0f695
cmp ax, 0x22
je 0x4ad1498e
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 5
push 0x80000000
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4ad0f703
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push ebx
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esi + esi + 4]
push eax
call fcn.4ad01896
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x4ad149f7
or dword [ebp - 0x20], 0xffffffff
push ebx
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x18]
push esi
add eax, esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3c], ebx
je 0x4ad149cb
cmp dword [ebp - 0x20], esi
jne 0x4ad1045a
mov edi, dword [ebp - 0x18]
push esi
push edi
push esi
add esi, edi
push esi
mov esi, dword [0x4ad241b8]
push esi
call fcn.4ad04b8d
neg eax
sbb eax, eax
neg eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [edi + eax*2]
mov dword [ebp - 4], edi
mov dword [ebp - 0x2c], eax
cmp eax, edi
je 0x4ad0f665
cmp word [eax - 2], 0xa
jne 0x4ad0f665
mov edi, dword [ebp - 8]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 4], eax
jae 0x4ad0e9b5
cmp byte [0x4ad240b8], 0
jne 0x4ad0e9b5
call fcn.4ad04b2a
mov esi, dword [ebp - 4]
push 0xa
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x4ad0e9b5
cmp eax, esi
jbe 0x4ad0e893
cmp word [eax - 2], 0xd
jne 0x4ad0e893
xor ecx, ecx
mov word [eax - 2], cx
mov eax, dword [ebp - 4]
xor ecx, ecx
mov word [eax], cx
add dword [ebp - 4], 2
xor edx, edx
cmp dword [ebp - 0x14], edx
jne 0x4ad10494
mov ecx, dword [ebp - 0xc]
cmp ecx, 1
jle 0x4ad0e8c9
mov eax, dword [ebp + 0xc]
lea eax, [eax*4 + 4]
dec ecx
mov ebx, dword [0x4ad240c0]
mov dword [eax + ebx], edx
add eax, 4
dec ecx
jne 0x4ad0e8ba
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], edx
cmp word [esi], dx
je 0x4ad0e9a9
mov eax, dword [ebp + 0xc]
shl eax, 2
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], eax
xor ebx, ebx
cmp word [esi], bx
je 0x4ad0e906
movzx eax, word [esi]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x4ad0db94
cmp dword [ebp - 8], ebx
je 0x4ad0ea66
mov eax, dword [ebp - 0x44]
mov ebx, esi
test eax, eax
jne 0x4ad1206b
cmp word [esi], 0
je 0x4ad0e983
movzx eax, word [esi]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x4ad0e93c
inc esi
inc esi
cmp word [esi], ax
jne 0x4ad0e922
cmp ebx, esi
je 0x4ad0e96d
cmp dword [ebp - 8], 0x20
jge 0x4ad0e96d
mov ecx, dword [ebp - 8]
xor eax, eax
inc eax
shl eax, cl
and eax, dword [ebp - 0x28]
inc dword [ebp - 8]
test eax, eax
je 0x4ad0e96d
mov ecx, dword [ebp - 0x38]
mov eax, dword [0x4ad240c0]
inc dword [ebp - 0x10]
add dword [ebp - 0x38], 4
inc dword [ebp - 0x3c]
mov dword [eax + ecx], ebx
cmp word [esi], 0
je 0x4ad0e983
xor eax, eax
mov word [esi], ax
inc esi
inc esi
cmp word [esi], ax
jne 0x4ad0e8e8
cmp dword [ebp - 0x10], 0
je 0x4ad0e9a9
push dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push dword [eax + 0x40]
call fcn.4ad0dbce
push dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
call fcn.4ad0dc07
and dword [ebp + 0x10], 0
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x2c]
jb 0x4ad0e854
cmp dword [ebp - 0x18], 0
je 0x4ad0e9c3
push dword [ebp - 0x18]
call fcn.4ad0142e
mov eax, dword [ebp - 0x1c]
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
mov dword [ebp - 8], edi
jne 0x4ad0e71b
cmp dword [ebp - 0xc], 1
jle 0x4ad0e9ff
mov eax, dword [0x4ad240bc]
test eax, eax
je 0x4ad0e9ff
cmp word [eax], 0
je 0x4ad0e9ff
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov word [eax + ecx*2 + 2], dx
mov eax, dword [0x4ad240c0]
and dword [eax + ecx*4 + 4], edx
mov eax, dword [ebp - 0x4c]
pop edi
pop esi
pop ebx
leave
ret 0xc
mov ax, word [ebp - 0x40]
cmp word [esi], ax
jne 0x4ad0e90f
jmp 0x4ad0e983
cmp ax, 0x2a
jne 0x4ad0e610
jmp 0x4ad0e605
mov eax, dword [ebp - 4]
add eax, 0xe
mov edi, eax
jmp 0x4ad0ea9e
cmp cx, si
je 0x4ad0eaa9
cmp cx, 0x20
je 0x4ad0eade
inc eax
inc eax
mov dword [ebp - 4], eax
movzx ecx, word [eax]
test cx, cx
jne 0x4ad0ea91
movzx esi, word [eax]
push dword [ebp - 0x24]
xor ecx, ecx
mov word [eax], cx
call fcn.4ad0142e
push edi
call fcn.4ad045d8
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov word [eax], si
mov eax, dword [ebp - 4]
cmp word [eax], 0
je 0x4ad0e618
add dword [ebp - 4], 2
jmp 0x4ad0e618
cmp word [eax + 2], si
jne 0x4ad0eaa9
jmp 0x4ad0ea9c
push 0
lea ecx, [ebp - 4]
push ecx
add eax, 2
push eax
call dword [sym.imp.msvcrt.dll_wcstol]
add esp, 0xc
test eax, eax
jg 0x4ad0e5d4
jmp 0x4ad14949
push 0xa
pop ecx
mov word [eax], cx
inc eax
inc eax
mov dword [ebp - 0x2c], eax
jmp 0x4ad0e840
add dword [ebp - 4], 2
inc edi
mov dword [ebp - 0x44], edi
jmp 0x4ad0e610
cmp ecx, 1
jle 0x4ad0e776
cmp word [edi + ecx*2 - 2], dx
jne 0x4ad0e776
push 0xa
pop eax
mov word [edi + ecx*2 - 2], ax
add edi, esi
sub ecx, esi
lea eax, [edi + ecx*2 + 2]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 0x2c], eax
jmp 0x4ad0e848
push dword [ebp - 8]
push 1
push 0x2363
call fcn.4ad06d44
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4ad0ea02
mov al, byte [esi]
inc esi
test al, al
jne 0x4ad0f98a
sub esi, ecx
push ebx
call dword [sym.imp.msvcrt.dll_feof]
pop ecx
test eax, eax
jne 0x4ad0f9fb
push ebx
call dword [sym.imp.msvcrt.dll_ferror]
pop ecx
test eax, eax
jne 0x4ad0f9fb
mov eax, dword [ebp - 0x10]
sub eax, esi
cmp eax, 0x200
jae 0x4ad0f9d9
add dword [ebp - 0x10], 0x100
push dword [ebp - 0x10]
test edi, edi
je 0x4ad0fa96
push edi
call fcn.4ad02536
mov edi, eax
test edi, edi
je 0x4ad149d3
mov ecx, dword [ebp - 0x10]
push ebx
sub ecx, esi
lea eax, [edi + esi]
push ecx
push eax
mov byte [eax], 0
call dword [sym.imp.msvcrt.dll_fgets]
add esp, 0xc
test eax, eax
je 0x4ad0f9fb
mov esi, edi
lea ecx, [esi + 1]
jmp 0x4ad0f98a
push ebx
call dword [sym.imp.msvcrt.dll__pclose]
pop ecx
lea eax, [esi + esi + 4]
push eax
push edi
call fcn.4ad02536
cmp dword [0x4ad240bc], 0
mov edi, eax
je 0x4ad149e3
cmp dword [0x4ad240c0], 0
je 0x4ad149e3
push esi
lea eax, [edi + esi]
push edi
push eax
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], esi
jmp 0x4ad0e801
cmp ecx, 1
jle 0x4ad0e76a
cmp word [edi + ecx*2 - 2], dx
jne 0x4ad0e76a
sub dword [ebp - 0x1c], 2
mov ecx, dword [ebp - 0x1c]
inc edi
inc edi
xor eax, eax
push 0x4ad0fa90
push edi
mov dword [ebp - 8], edi
mov word [edi + ecx*2], ax
call dword [sym.imp.msvcrt.dll__wpopen]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x4ad10462
xor edi, edi
mov dword [ebp - 0x10], edi
xor esi, esi
jmp 0x4ad0f993
call fcn.4ad01896
jmp 0x4ad0f9cf
inc ecx
inc ecx
mov dword [ebp - 4], ecx
movzx eax, word [ecx]
test ax, ax
jne 0x4ad0e4e7
jmp 0x4ad0e4f1
mov edi, dword [ebp - 8]
jmp 0x4ad0e9b5
push edi
push 1
push 0x2331
jmp 0x4ad0f70d
add dword [ebp - 4], 0xa
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_wcstol]
add esp, 0xc
mov dword [ebp - 0x14], eax
test eax, eax
jg 0x4ad0e618
jmp 0x4ad14949
dec dword [ebp - 0x14]
jmp 0x4ad0e9a9
cmp dword [ebp - 0x3c], eax
jne 0x4ad0e91c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
add ecx, eax
mov eax, dword [0x4ad240c0]
inc dword [ebp - 0x10]
mov dword [eax + ecx*4], esi
jmp 0x4ad0e983
cmp ax, 0x27
je 0x4ad0e4c2
mov dword [ebp - 0x2c], ebx
jmp 0x4ad0e4cd
add dword [ebp - 4], 0x10
mov dword [ebp - 0x1c], 1
jmp 0x4ad0e618
add dword [ebp - 4], 0xe
mov dword [ebp - 0x1c], 1
jmp 0x4ad0e618
mov eax, dword [ebp - 4]
movzx eax, word [eax + 8]
add dword [ebp - 4], 0xa
mov dword [ebp - 0x40], eax
jmp 0x4ad0e618
push dword [ebp - 4]
push 1
push 0x234a
call fcn.4ad06d44
xor eax, eax
add esp, 0xc
inc eax
jmp 0x4ad0ea02
push 0
push 0x2374
call fcn.4ad06d44
pop ecx
pop ecx
call fcn.4ad1fca6
jmp 0x4ad0e678
mov dword [ebp - 0x30], 0x60
mov dword [ebp - 0x34], 0x27
jmp 0x4ad0e6e9
add edi, esi
dec ecx
push edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x1c], ecx
call fcn.4ad02ed1
mov dword [ebp - 4], eax
cmp word [eax], 0x22
jne 0x4ad0e780
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 4]
sub eax, esi
mov dword [ebp - 4], eax
cmp eax, edi
jb 0x4ad0e780
cmp word [eax], 0x20
jne 0x4ad0e780
jmp 0x4ad149aa
mov dword [ebp - 0x20], ebx
jmp 0x4ad0e7f8
push ebx
call dword [sym.imp.msvcrt.dll__pclose]
pop ecx
push 8
pop eax
jmp 0x4ad0ea02
push dword [ebp - 8]
push 1
push 0x2374
call fcn.4ad06d44
add esp, 0xc
jmp 0x4ad149db
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4ad149db