Function at 0x100d00f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10137941
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x10182014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
push ecx
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov dword [ebp - 0xe0], edi
call fcn.100d14f0
mov eax, dword [esi]
add esp, 4
mov dword [esi + 4], eax
mov ecx, ebx
mov byte [edi], 0
cmp dword [ebx + 0x14], 8
jb 0x100d014d
mov ecx, dword [ebx]
push ecx
push 0x80
push 3
push ecx
push 0
mov edx, SysReAllocString
call fcn.100b43f0
mov edi, eax
add esp, 0x14
cmp edi, 0xffffffff
je 0x100d02d5
test edi, edi
je 0x100d02d5
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ecx
lea ecx, [ebp - 0x38]
call fcn.1002c3a0
call fcn.10007230
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xec]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0xdc]
movlpd qword [ebp - 0xdc], xmm0
push eax
push ebx
movlpd qword [ebp - 0xec], xmm0
movlpd qword [ebp - 0x2c], xmm0
call fcn.100d0870
test al, al
je 0x100d0254
mov ebx, dword [ebp - 0xdc]
mov ecx, ebx
mov eax, dword [ebp - 0xd8]
add ecx, 0xffffffff
adc eax, 0xffffffff
test eax, eax
ja 0x100d0254
jb 0x100d01f4
cmp ecx, 0x4ffffe
ja 0x100d0254
lea eax, [ebp - 0xcd]
mov byte [ebp - 0xcd], 0
push eax
push ebx
lea ecx, [ebp - 0x38]
call fcn.100591e0
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x28], 0
call fcn.10026f10
push 0
lea ecx, [ebp - 0x28]
push ecx
mov eax, dword [eax]
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x28]
xor ecx, ecx
cmp ecx, dword [ebp - 0xd8]
ja 0x100d0254
jb 0x100d023e
cmp eax, ebx
jae 0x100d0254
mov byte [ebp - 0xcd], cl
lea ecx, [ebp - 0xcd]
push ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.100591e0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x38]
call fcn.10026f10
mov edx, eax
call fcn.1002cc60
mov ecx, dword [edx]
cmp ecx, dword [eax]
je 0x100d02c6
push ecx
lea ecx, [ebp - 0x44]
call fcn.1002c3a0
call fcn.10007230
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xcc]
call fcn.10113b90
lea ecx, [ebp - 0x38]
call fcn.10026f10
mov edx, dword [eax]
lea eax, [ebp - 0x44]
push eax
call fcn.1002c8e0
push eax
push edx
lea ecx, [ebp - 0xcc]
call fcn.10056fa0
test al, al
jne 0x100d02f5
mov eax, dword [ebp - 0xe0]
mov byte [eax], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.1002c8f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.1002c8f0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1011730d
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x44]
call fcn.1002c8e0
xor edx, edx
mov ecx, 0x3e8
div ecx
test edx, edx
jne 0x100d02b1
lea ecx, [ebp - 0x44]
call fcn.1002c8e0
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov edi, edx
shr edi, 6
mov dword [ebp - 0xd8], edi
test edi, edi
je 0x100d069f
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x20]
push eax
push edi
mov ecx, eax
call fcn.100d0fb0
lea ecx, [ebp - 0x44]
call fcn.10026f10
mov ecx, dword [eax]
imul eax, edi, 0x3e8
push eax
push ecx
push dword [ebp - 0x20]
call sub.VCRUNTIME140.dll_memcpy
mov ebx, dword [ebp - 0x20]
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov eax, 0x10624dd3
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
sub ecx, ebx
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x100d03f1
xor edi, edi
cmp dword [ebx + edi], 0x23ab45db
jne 0x100d041d
inc dword [ebp - 0x28]
xor eax, eax
mov word [ebx + edi + 0x282], ax
mov word [ebx + edi + 0x382], ax
mov word [ebx + edi + 0x3ca], ax
mov eax, 0x10624dd3
mov ecx, dword [ebp - 0x1c]
add edi, 0x3e8
mov ebx, dword [ebp - 0x20]
sub ecx, ebx
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x28], eax
jb 0x100d03a1
mov edi, dword [ebp - 0xd8]
mov ecx, dword [esi + 8]
mov eax, 0x4ec4ec4f
sub ecx, dword [esi]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jbe 0x100d049d
cmp edi, 0x2762762
ja 0x100d06c1
jmp 0x100d0495
mov eax, dword [ebp - 0xe0]
mov byte [eax], 1
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x100d02ba
mov ecx, dword [ebp - 0x18]
mov eax, 0x10624dd3
sub ecx, esi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x3e8
mov eax, esi
cmp ecx, 0x1000
jb 0x100d0471
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100d0471
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.101177a0
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
jmp 0x100d02ba
push edi
mov ecx, esi
call fcn.100d0d20
lea ecx, [ebp - 0xac]
call fcn.100ce6c0
mov byte [ebp - 4], 3
xor ecx, ecx
mov edi, dword [ebp - 0x20]
mov eax, 0x10624dd3
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x1c]
sub ecx, edi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x100d0606
xor ebx, ebx
mov dword [ebp - 0xd8], ebx
lea edx, [ebx + 4]
add edx, edi
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100d04e2
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xac]
call fcn.100044e0
mov ebx, dword [ebp - 0xd8]
lea edx, [ebx + 0x284]
add edx, edi
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0xd8], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100d0517
sub ecx, dword [ebp - 0xd8]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x94]
call fcn.100044e0
mov eax, dword [edi + ebx + 0x3cc]
lea edx, [ebx + 0x384]
mov dword [ebp - 0x64], eax
add edx, edi
mov eax, dword [edi + ebx + 0x3d0]
mov ecx, edx
mov dword [ebp - 0x60], eax
mov eax, dword [edi + ebx + 0x3d4]
mov dword [ebp - 0x5c], eax
mov eax, dword [edi + ebx + 0x3d8]
mov dword [ebp - 0x58], eax
mov eax, dword [edi + ebx + 0x3dc]
mov dword [ebp - 0x54], eax
mov eax, dword [edi + ebx + 0x3e0]
mov dword [ebp - 0x50], eax
lea eax, [ecx + 2]
mov dword [ebp - 0xd8], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100d0586
sub ecx, dword [ebp - 0xd8]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x7c]
call fcn.100044e0
mov eax, dword [edi + ebx + 0x3e4]
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x4c], eax
mov eax, dword [esi + 4]
mov byte [ebp - 0x48], 0
push ecx
cmp dword [esi + 8], eax
je 0x100d05cd
mov ecx, eax
call fcn.100cf0c0
add dword [esi + 4], 0x68
jmp 0x100d05d5
push eax
mov ecx, esi
call fcn.100d1330
mov ecx, dword [ebp - 0x1c]
mov eax, 0x10624dd3
mov edi, dword [ebp - 0x20]
add ebx, 0x3e8
inc dword [ebp - 0x28]
sub ecx, edi
imul ecx
mov dword [ebp - 0xd8], ebx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x28], eax
jb 0x100d04d8
mov eax, dword [ebp - 0xe0]
mov byte [eax], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x7c]
call fcn.10004480
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x94]
call fcn.10004480
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xac]
call fcn.10004480
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x100d069f
mov ecx, dword [ebp - 0x18]
mov eax, 0x10624dd3
sub ecx, esi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x3e8
mov eax, esi
cmp ecx, 0x1000
jb 0x100d0680
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100d0680
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.101177a0
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.1002c8f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.1002c8f0
mov al, 1
jmp 0x100d02d7
call fcn.10007820
int3