Function at 0x100d99d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x808c
call fcn.100352e0
mov eax, dword [0x101a8cb0]
xor eax, ebp
mov dword [ebp - 0xc], eax
push 0x54
push 0
lea eax, [ebp - 0x8070]
push eax
call fcn.1002a420
add esp, 0xc
cmp dword [ebp + 0x20], 0
je 0x100d9a0b
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x8084], ecx
jmp 0x100d9a2f
lea edx, [ebp - 0x8084]
push edx
call fcn.10009b30
add esp, 4
mov word [ebp - 8], ax
movzx eax, word [ebp - 8]
test eax, eax
je 0x100d9a2f
mov ax, word [ebp - 8]
jmp 0x100da0fc
cmp dword [ebp + 0xc], 0
je 0x100d9aec
push 2
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1000c5c0
add esp, 0xc
mov dword [ebp - 0x808c], eax
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.1000c5c0
add esp, 0xc
mov eax, dword [ebp - 0x808c]
push eax
mov ecx, dword [ebp - 0x8084]
push ecx
call fcn.10009ed0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100d9a9d
cmp dword [ebp + 0x20], 0
jne 0x100d9a93
mov edx, dword [ebp - 0x8084]
push edx
call fcn.10009d90
add esp, 4
mov eax, 0x66
jmp 0x100da0fc
mov eax, dword [ebp - 0x808c]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.1000b880
add esp, 0xc
mov dword [ebp - 0x8078], eax
mov eax, dword [ebp - 0x8078]
cmp eax, dword [ebp - 0x808c]
je 0x100d9ae7
cmp dword [ebp + 0x20], 0
jne 0x100d9add
mov ecx, dword [ebp - 0x8084]
push ecx
call fcn.10009d90
add esp, 4
mov eax, 0xca
jmp 0x100da0fc
jmp 0x100d9c72
cmp dword [ebp + 8], 0
je 0x100d9b02
mov edx, dword [ebp + 8]
push edx
call fcn.1002d6f0
add esp, 4
test eax, eax
jne 0x100d9b21
cmp dword [ebp + 0x20], 0
jne 0x100d9b17
mov eax, dword [ebp - 0x8084]
push eax
call fcn.10009d90
add esp, 4
mov eax, 1
jmp 0x100da0fc
push 0x101bae58
mov ecx, dword [ebp + 8]
push ecx
call fcn.10003c90
add esp, 8
mov dword [ebp - 0x8014], eax
cmp dword [ebp - 0x8014], 0
jne 0x100d9b60
cmp dword [ebp + 0x20], 0
jne 0x100d9b56
mov edx, dword [ebp - 0x8084]
push edx
call fcn.10009d90
add esp, 4
mov eax, 0xc9
jmp 0x100da0fc
push 0x8000
push 0
lea eax, [ebp - 0x8010]
push eax
mov ecx, dword [ebp - 0x8014]
push ecx
call fcn.100356e0
add esp, 0x10
push 2
push 0
mov edx, dword [ebp - 0x8014]
push edx
call fcn.10033a60
add esp, 0xc
mov eax, dword [ebp - 0x8014]
push eax
call fcn.10034f20
add esp, 4
mov dword [ebp - 0x808c], eax
push 0
push 0
mov ecx, dword [ebp - 0x8014]
push ecx
call fcn.10033a60
add esp, 0xc
mov edx, dword [ebp - 0x808c]
push edx
mov eax, dword [ebp - 0x8084]
push eax
call fcn.10009ed0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100d9c05
mov ecx, dword [ebp - 0x8014]
push ecx
call fcn.1002ac50
add esp, 4
cmp dword [ebp + 0x20], 0
jne 0x100d9bfb
mov edx, dword [ebp - 0x8084]
push edx
call fcn.10009d90
add esp, 4
mov eax, 0x66
jmp 0x100da0fc
mov eax, dword [ebp - 0x8014]
push eax
mov ecx, dword [ebp - 0x808c]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
call fcn.10032e00
add esp, 0x10
mov dword [ebp - 0x8078], eax
mov eax, dword [ebp - 0x8078]
cmp eax, dword [ebp - 0x808c]
je 0x100d9c63
mov ecx, dword [ebp - 0x8014]
push ecx
call fcn.1002ac50
add esp, 4
cmp dword [ebp + 0x20], 0
jne 0x100d9c59
mov edx, dword [ebp - 0x8084]
push edx
call fcn.10009d90
add esp, 4
mov eax, 0xca
jmp 0x100da0fc
mov eax, dword [ebp - 0x8014]
push eax
call fcn.1002ac50
add esp, 4
mov dword [ebp - 0x8078], 0x80
push 4
push 0x101bae5c
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x8078]
push ecx
call fcn.100344b0
add esp, 0xc
test eax, eax
jne 0x100da025
mov edx, dword [ebp - 0x8078]
add edx, 4
mov dword [ebp - 0x8078], edx
mov dword [ebp - 0x806c], 0x4000
mov dword [ebp - 0x8070], 2
mov dword [ebp - 0x8068], 1
mov dword [ebp - 0x8064], 0
mov dword [ebp - 0x8088], 0
lea eax, [ebp - 0x8070]
push eax
mov ecx, dword [ebp - 0x8084]
push ecx
lea edx, [ebp - 0x8088]
push edx
mov eax, dword [ebp - 0x808c]
sub eax, dword [ebp - 0x8078]
push eax
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x8078]
push ecx
call fcn.10068800
add esp, 0x14
mov word [ebp - 8], ax
movzx edx, word [ebp - 8]
test edx, edx
je 0x100d9d3c
cmp dword [ebp + 0x20], 0
jne 0x100d9d33
mov eax, dword [ebp - 0x8084]
push eax
call fcn.10009d90
add esp, 4
mov ax, word [ebp - 8]
jmp 0x100da0fc
mov ecx, dword [ebp - 0x8088]
movzx edx, word [ecx]
cmp edx, 2
jne 0x100d9d58
mov eax, dword [ebp - 0x8088]
movzx ecx, word [eax + 2]
test ecx, ecx
je 0x100d9d76
cmp dword [ebp + 0x20], 0
jne 0x100d9d6d
mov edx, dword [ebp - 0x8084]
push edx
call fcn.10009d90
add esp, 4
mov ax, word [ebp - 8]
jmp 0x100da0fc
lea eax, [ebp - 0x8070]
push eax
mov ecx, dword [ebp - 0x8088]
push ecx
call fcn.1006a850
add esp, 8
mov edx, dword [ebp - 0x8088]
mov ecx, dword [edx + 4]
add ecx, eax
add ecx, dword [ebp - 0x8078]
mov dword [ebp - 0x8078], ecx
lea edx, [ebp - 0x8070]
push edx
mov eax, dword [ebp - 0x8088]
push eax
call fcn.1006a6d0
add esp, 8
mov dword [ebp - 0x807c], eax
mov dword [ebp - 0x8080], 0
mov dword [ebp - 0x8074], 0
lea ecx, [ebp - 0x8070]
push ecx
mov edx, dword [ebp - 0x8084]
push edx
lea eax, [ebp - 0x8080]
push eax
mov ecx, dword [ebp - 0x807c]
push ecx
lea edx, [ebp - 0x8074]
push edx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x8078]
push eax
call fcn.1006f980
add esp, 0x18
mov word [ebp - 8], ax
movzx ecx, word [ebp - 8]
test ecx, ecx
je 0x100d9e32
cmp dword [ebp + 0x20], 0
jne 0x100d9e29
mov edx, dword [ebp - 0x8084]
push edx
call fcn.10009d90
add esp, 4
mov ax, word [ebp - 8]
jmp 0x100da0fc
mov eax, dword [ebp - 0x8080]
cmp eax, dword [ebp - 0x807c]
je 0x100d9e5f
cmp dword [ebp + 0x20], 0
jne 0x100d9e55
mov ecx, dword [ebp - 0x8084]
push ecx
call fcn.10009d90
add esp, 4
mov eax, 2
jmp 0x100da0fc
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x8074]
push ecx
call fcn.100fa4c0
add esp, 0xc
mov word [ebp - 8], ax
movzx edx, word [ebp - 8]
test edx, edx
je 0x100d9ea0
cmp dword [ebp + 0x20], 0
jne 0x100d9e97
mov eax, dword [ebp - 0x8084]
push eax
call fcn.10009d90
add esp, 4
mov ax, word [ebp - 8]
jmp 0x100da0fc
mov ecx, dword [ebp + 0x24]
mov dword [ecx + 4], 0x4000
push 0x101bae64
mov edx, dword [ebp + 0x10]
add edx, 0xa0
push edx
call fcn.100338a0
add esp, 8
test eax, eax
jne 0x100d9ed3
mov eax, dword [ebp + 0x24]
mov dword [eax], 1
jmp 0x100da011
push 0x101bae78
mov ecx, dword [ebp + 0x10]
add ecx, 0xa0
push ecx
call fcn.100338a0
add esp, 8
test eax, eax
jne 0x100d9efc
mov edx, dword [ebp + 0x24]
mov dword [edx], 2
jmp 0x100da011
push 0x101bae8c
mov eax, dword [ebp + 0x10]
add eax, 0xa0
push eax
call fcn.100338a0
add esp, 8
test eax, eax
jne 0x100d9f24
mov ecx, dword [ebp + 0x24]
mov dword [ecx], 3
jmp 0x100da011
push 0x101baea0
mov edx, dword [ebp + 0x10]
add edx, 0xa0
push edx
call fcn.100338a0
add esp, 8
test eax, eax
je 0x100d9fe7
push 0x101baeb8
mov eax, dword [ebp + 0x10]
add eax, 0xa0
push eax
call fcn.100338a0
add esp, 8
test eax, eax
je 0x100d9fe7
push 0x101baed0
mov ecx, dword [ebp + 0x10]
add ecx, 0xa0
push ecx
call fcn.100338a0
add esp, 8
test eax, eax
je 0x100d9fe7
push 0x101baee8
mov edx, dword [ebp + 0x10]
add edx, 0xa0
push edx
call fcn.100338a0
add esp, 8
test eax, eax
je 0x100d9fe7
push 0x101baf00
mov eax, dword [ebp + 0x10]
add eax, 0xa0
push eax
call fcn.100338a0
add esp, 8
test eax, eax
je 0x100d9fe7
push 0x101baf18
mov ecx, dword [ebp + 0x10]
add ecx, 0xa0
push ecx
call fcn.100338a0
add esp, 8
test eax, eax
je 0x100d9fe7
push 0x101baf30
mov edx, dword [ebp + 0x10]
add edx, 0xa0
push edx
call fcn.100338a0
add esp, 8
test eax, eax
jne 0x100d9ff2
mov eax, dword [ebp + 0x24]
mov dword [eax], 2
jmp 0x100da011
cmp dword [ebp + 0x20], 0
jne 0x100da007
mov ecx, dword [ebp - 0x8084]
push ecx
call fcn.10009d90
add esp, 4
mov eax, 0x12e
jmp 0x100da0fc
mov edx, dword [ebp - 0x8078]
add edx, dword [ebp - 0x807c]
mov dword [ebp - 0x8078], edx
jmp 0x100da081
mov eax, dword [ebp - 4]
movzx ecx, byte [eax]
cmp ecx, 8
jne 0x100da03b
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 1]
test eax, eax
je 0x100da05a
cmp dword [ebp + 0x20], 0
jne 0x100da050
mov ecx, dword [ebp - 0x8084]
push ecx
call fcn.10009d90
add esp, 4
mov eax, 2
jmp 0x100da0fc
mov dword [ebp - 0x8078], 0
mov dword [ebp - 0x8070], 1
mov edx, dword [ebp + 0x24]
mov dword [edx + 4], 0x4000
mov eax, dword [ebp + 0x24]
mov dword [eax], 1
mov ecx, dword [ebp - 0x808c]
sub ecx, dword [ebp - 0x8078]
mov dword [ebp - 0x807c], ecx
mov edx, dword [ebp + 0x24]
push edx
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x807c]
push ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x8078]
push edx
call fcn.100d92d0
add esp, 0x1c
mov word [ebp - 8], ax
movzx eax, word [ebp - 8]
test eax, eax
je 0x100da0e5
cmp dword [ebp + 0x20], 0
jne 0x100da0e1
mov ecx, dword [ebp - 0x8084]
push ecx
call fcn.10009d90
add esp, 4
xor eax, eax
jmp 0x100da0fc
cmp dword [ebp + 0x20], 0
jne 0x100da0fa
mov edx, dword [ebp - 0x8084]
push edx
call fcn.10009d90
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.1002aab0
mov esp, ebp
pop ebp
ret