Function at 0x10108680
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101838d7
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x101e8118]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 4], 1
push 0x101a25b0
push 0
lea ecx, [ebp + 0xc]
call fcn.10005f10
push eax
call fcn.1013a36c
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x10108902
push 2
push 0
mov eax, dword [ebp - 0x10]
push eax
call fcn.1013a97f
add esp, 0xc
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.1013ab9c
add esp, 4
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x10108736
mov edx, dword [ebp - 0x10]
push edx
call fcn.1013a442
add esp, 4
push 0x101a25b8
mov ecx, dword [ebp + 8]
call fcn.100b0fe0
mov eax, dword [ebp - 0x78]
or eax, 1
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.10006030
mov eax, dword [ebp + 8]
jmp 0x10108927
push 0
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.1013a97f
add esp, 0xc
mov edx, dword [ebp - 0x48]
add edx, 2
push edx
call fcn.10139b2d
add esp, 4
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x48]
add ecx, 2
push ecx
call fcn.10139b2d
add esp, 4
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
push 1
mov edx, dword [ebp - 0x40]
push edx
call fcn.1013a736
add esp, 0x10
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.1013a442
add esp, 4
mov ecx, dword [ebp - 0x40]
add ecx, dword [ebp - 0x48]
mov byte [ecx], 0
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x44]
push eax
call fcn.10140680
add esp, 8
push str._TOOLBAR
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.1016bedb
add esp, 4
push eax
call fcn.10107030
add esp, 8
test eax, eax
jne 0x101087e2
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x40]
push eax
call fcn.10108470
add esp, 8
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x54]
push edx
call fcn.10139c4c
add esp, 4
mov eax, dword [ebp - 0x40]
push eax
lea ecx, [ebp - 0x70]
call fcn.1000acc0
mov byte [ebp - 4], 2
push 0xfde9
lea ecx, [ebp - 0x70]
push ecx
lea edx, [ebp - 0x34]
push edx
call fcn.101084c0
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
call fcn.1000ad40
mov dword [ebp - 0x38], 0
push 0
push str.__xml
lea ecx, [ebp - 0x34]
call fcn.101089d0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [0x1019786c]
jne 0x1010885b
push 0
push 0x101a25d4
lea ecx, [ebp - 0x34]
call fcn.101089d0
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x38]
push edx
lea ecx, [ebp - 0x34]
call fcn.100b1650
push 0
push 0x101a25d8
lea ecx, [ebp - 0x34]
call fcn.101089d0
mov dword [ebp - 0x38], eax
push 0
push 0x101a25e4
lea ecx, [ebp - 0x34]
call fcn.101089d0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x38]
cmp eax, dword [0x1019786c]
je 0x101088be
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [0x1019786c]
je 0x101088be
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x38]
add edx, 2
push edx
mov eax, dword [ebp - 0x38]
push eax
lea ecx, [ebp - 0x34]
call fcn.100b1650
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0x74]
push edx
call fcn.10139c4c
add esp, 4
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
call fcn.10108970
mov ecx, dword [ebp - 0x78]
or ecx, 1
mov dword [ebp - 0x78], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.100b1020
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.10006030
mov eax, dword [ebp + 8]
jmp 0x10108927
push 0x101a25ec
mov ecx, dword [ebp + 8]
call fcn.100b0fe0
mov edx, dword [ebp - 0x78]
or edx, 1
mov dword [ebp - 0x78], edx
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.10006030
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.1013a297
mov esp, ebp
pop ebp
ret