Function at 0x100d6ade
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x10ec]
mov eax, 0x10ec
call fcn.10102790
push 0xffffffffffffffff
push 0x10149eb3
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x1019c8c8]
xor eax, ebp
mov dword [ebp + 0x10e8], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10fc]
mov esi, ecx
mov dword [ebp - 0x1c], eax
xor ebx, ebx
cmp dword [esi + 0x148], ebx
mov dword [ebp - 4], 1
mov dword [ebp - 0x24], ebx
je 0x100d6d88
cmp dword [esi + 0x14c], ebx
je 0x100d6d88
mov eax, dword [ebp + 0x10f4]
mov eax, dword [eax - 8]
cmp eax, ebx
je 0x100d6d88
mov edi, 0x824
cmp eax, edi
jae 0x100d6d88
mov eax, dword [ebp + 0x10f8]
mov eax, dword [eax - 8]
cmp eax, ebx
je 0x100d6d88
cmp eax, edi
jae 0x100d6d88
push 0x1046
lea eax, [ebp + 0xa2]
push ebx
push eax
mov word [ebp + 0xa0], bx
call fcn.101027c0
add esp, 0xc
push 0x2000000
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0xa0]
push eax
push dword [ebp + 0x10f4]
mov dword [ebp - 0x28], edi
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlW]
test eax, eax
je 0x100d6d88
cmp dword [ebp - 0x28], ebx
jbe 0x100d6d88
lea eax, [ebp + 0xa0]
push eax
lea ecx, [ebp - 0x10]
call fcn.1000587e
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.10001ada
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_CharLowerW]
push ebx
lea ecx, [ebp - 0x10]
call fcn.10001a82
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x100d6d80
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x100d6d80
lea edi, [eax + eax]
mov eax, edi
call fcn.10102de0
mov eax, esp
push ebx
push edi
push dword [ebp - 0x18]
push eax
call fcn.1000c619
mov edi, eax
cmp edi, ebx
je 0x100d6d80
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
cmp al, bl
jne 0x100d6c3e
sub ecx, edx
push ecx
push edi
mov ecx, esi
call fcn.100d3f88
xor edx, edx
div dword [esi + 0x3c]
mov edi, edx
shl edi, 2
je 0x100d6d80
push ebx
lea eax, [edi + 0x140]
push eax
push dword [esi + 0x14c]
mov dword [ebp - 0x14], ebx
call fcn.10105fcb
add esp, 0xc
test eax, eax
jne 0x100d6d80
push dword [esi + 0x14c]
lea eax, [ebp - 0x14]
push 1
push 4
push eax
call fcn.101034cc
add esp, 0x10
cmp eax, 1
jne 0x100d6d80
push 0x4c
lea eax, [ebp + 0x54]
push ebx
push eax
mov dword [ebp + 0x50], ebx
call fcn.101027c0
add esp, 0xc
cmp dword [ebp - 0x14], ebx
je 0x100d6ebc
push ecx
lea eax, [ebp + 0xa0]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.1000587e
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.100d6823
cmp eax, 1
jne 0x100d6e81
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x150]
imul eax, eax, 0x15180
sub ecx, eax
cmp dword [ebp + 0x6c], ecx
jae 0x100d6e59
cmp dword [ebp + 0x60], ebx
jne 0x100d6dc9
cmp dword [ebp + 0x5c], ebx
jne 0x100d6dc9
lea eax, [ebp + 0x50]
push eax
push dword [ebp - 0x14]
mov ecx, esi
call fcn.100d428f
test eax, eax
je 0x100d6d80
push 0x50
lea eax, [ebp + 0x50]
push ebx
push eax
call fcn.101027c0
add esp, 0xc
push dword [ebp - 0x1c]
lea eax, [ebp + 0x10f8]
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov dword [ebp - 0x14], ebx
call fcn.1000584b
push ecx
mov byte [ebp - 4], 4
mov dword [ebp - 0x1c], esp
lea eax, [ebp + 0xa0]
mov ecx, esp
push eax
call fcn.1000587e
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.100d5842
cmp eax, ebx
je 0x100d6d80
mov dword [ebp - 0x24], 1
lea ecx, [ebp - 0x10]
call fcn.100015d9
lea ecx, [ebp + 0x10f4]
call fcn.100015d9
lea ecx, [ebp + 0x10f8]
call fcn.100015d9
mov eax, dword [ebp - 0x24]
lea esp, [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x10e8]
xor ecx, ebp
call fcn.101018a3
add ebp, 0x10ec
leave
ret 0xc
lea eax, [ebp + 0x50]
push eax
push dword [ebp - 0x14]
mov ecx, esi
call fcn.100d428f
test eax, eax
je 0x100d6d80
push 0x50
lea eax, [ebp + 0x50]
push ebx
push eax
call fcn.101027c0
pop ecx
pop ecx
lea eax, [ebp + 0xa0]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.1000587e
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.100d6823
push 0x4c
lea eax, [ebp + 4]
push ebx
push eax
mov dword [ebp], ebx
call fcn.101027c0
add esp, 0xc
push dword [ebp - 0x1c]
lea eax, [ebp + 0x10f8]
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
mov dword [ebp - 0x18], ebx
call fcn.1000584b
mov byte [ebp - 4], 3
push ecx
lea eax, [ebp + 0xa0]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.1000587e
lea eax, [ebp]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
jmp 0x100d6d69
push dword [ebp - 0x1c]
lea eax, [ebp + 0x10f8]
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.1000584b
lea eax, [ebp + 0x50]
push eax
push dword [ebp - 0x14]
mov ecx, esi
call fcn.100d5337
jmp 0x100d6d75
cmp eax, ebx
jne 0x100d6d80
push 0x4c
lea eax, [ebp + 4]
push ebx
push eax
mov dword [ebp], ebx
call fcn.101027c0
add esp, 0xc
push dword [ebp - 0x1c]
lea eax, [ebp + 0x10f8]
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
mov dword [ebp - 0x18], ebx
call fcn.1000584b
mov byte [ebp - 4], 5
jmp 0x100d6e37
push dword [ebp - 0x1c]
lea eax, [ebp + 0x10f8]
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.1000584b
push ecx
mov byte [ebp - 4], 6
mov dword [ebp - 0x18], esp
jmp 0x100d6d52