Function at 0x10036480
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100eccf8
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x101d6014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xd8], ecx
mov ecx, dword [ebp - 0xd8]
call fcn.10037060
mov dword [ebp - 0x9c], 0
push 0x10127f44
mov ecx, dword [ebp + 8]
call fcn.10018420
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.100cd750
add esp, 0xc
cmp dword [ebp - 0x9c], 0
je 0x10036cb5
push 2
push 0
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.100cd5b6
add esp, 0xc
mov edx, dword [ebp - 0x9c]
push edx
call fcn.100cd108
add esp, 4
mov dword [ebp - 0xc0], eax
push 0
push 0
mov eax, dword [ebp - 0x9c]
push eax
call fcn.100cd5b6
add esp, 0xc
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 0
cmp dword [ebp - 0xc0], 2
jl 0x100366cb
mov ecx, 1
imul edx, ecx, 0
mov dword [ebp - 0xcc], edx
cmp dword [ebp - 0xcc], 3
jae 0x10036565
jmp 0x1003656a
call fcn.100c57d7
mov eax, dword [ebp - 0xcc]
mov byte [ebp + eax - 0x1c], 0
mov ecx, dword [ebp - 0x9c]
push ecx
push 2
push 1
lea edx, [ebp - 0x1c]
push edx
call fcn.100cd963
add esp, 0x10
push 0
push 0
mov eax, dword [ebp - 0x9c]
push eax
call fcn.100cd5b6
add esp, 0xc
mov ecx, 1
imul edx, ecx, 0
movzx eax, byte [ebp + edx - 0x1c]
cmp eax, 0xfe
jne 0x100365e1
mov ecx, 1
shl ecx, 0
movzx edx, byte [ebp + ecx - 0x1c]
cmp edx, 0xff
jne 0x100365e1
mov dword [ebp - 0xbc], 2
mov dword [ebp - 0xb8], 2
jmp 0x100366cb
mov eax, 1
imul ecx, eax, 0
movzx edx, byte [ebp + ecx - 0x1c]
cmp edx, 0xff
jne 0x10036624
mov eax, 1
shl eax, 0
movzx ecx, byte [ebp + eax - 0x1c]
cmp ecx, 0xfe
jne 0x10036624
mov dword [ebp - 0xbc], 1
mov dword [ebp - 0xb8], 2
jmp 0x100366cb
cmp dword [ebp - 0xc0], 3
jl 0x100366cb
mov edx, 1
imul eax, edx, 0
mov dword [ebp - 0xd0], eax
cmp dword [ebp - 0xd0], 3
jae 0x1003664a
jmp 0x1003664f
call fcn.100c57d7
mov ecx, dword [ebp - 0xd0]
mov byte [ebp + ecx - 0x1c], 0
mov edx, dword [ebp - 0x9c]
push edx
push 3
push 1
lea eax, [ebp - 0x1c]
push eax
call fcn.100cd963
add esp, 0x10
push 0
push 0
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.100cd5b6
add esp, 0xc
mov edx, 1
imul eax, edx, 0
movzx ecx, byte [ebp + eax - 0x1c]
cmp ecx, 0xef
jne 0x100366cb
mov edx, 1
shl edx, 0
movzx eax, byte [ebp + edx - 0x1c]
cmp eax, 0xbb
jne 0x100366cb
mov ecx, 1
shl ecx, 1
movzx edx, byte [ebp + ecx - 0x1c]
cmp edx, 0xbf
jne 0x100366cb
mov dword [ebp - 0xb8], 3
mov eax, dword [ebp - 0xc0]
sub eax, dword [ebp - 0xb8]
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 0
jle 0x10036ca6
mov ecx, dword [ebp - 0xac]
push ecx
call fcn.100c5ce1
add esp, 4
mov dword [ebp - 0xe0], eax
mov edx, dword [ebp - 0xe0]
mov dword [ebp - 0xb0], edx
push 0
mov eax, dword [ebp - 0xb8]
push eax
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.100cd5b6
add esp, 0xc
mov edx, dword [ebp - 0x9c]
push edx
mov eax, dword [ebp - 0xac]
push eax
push 1
mov ecx, dword [ebp - 0xb0]
push ecx
call fcn.100cd963
add esp, 0x10
mov edx, dword [ebp - 0x9c]
push edx
call fcn.100cd261
add esp, 4
mov dword [ebp - 0xa8], 0
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xc4], eax
cmp dword [ebp - 0xc4], 0
je 0x10036784
cmp dword [ebp - 0xc4], 1
je 0x100367ab
cmp dword [ebp - 0xc4], 2
je 0x100367ab
jmp 0x100367bc
push 0
push 0
mov ecx, dword [ebp - 0xac]
push ecx
mov edx, dword [ebp - 0xb0]
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0xa8], eax
jmp 0x100367bc
mov eax, dword [ebp - 0xac]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0xa8], eax
xor ecx, ecx
mov eax, dword [ebp - 0xa8]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100c5ce1
add esp, 4
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0xa8]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0xa0]
push edx
call fcn.100c7480
add esp, 0xc
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0
je 0x10036830
cmp dword [ebp - 0xc8], 1
je 0x1003685b
cmp dword [ebp - 0xc8], 2
je 0x1003685b
jmp 0x10036878
mov ecx, dword [ebp - 0xa8]
push ecx
mov edx, dword [ebp - 0xa0]
push edx
mov eax, dword [ebp - 0xac]
push eax
mov ecx, dword [ebp - 0xb0]
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x10036878
mov edx, dword [ebp - 0xac]
push edx
mov eax, dword [ebp - 0xb0]
push eax
mov ecx, dword [ebp - 0xa0]
push ecx
call fcn.100c6f00
add esp, 0xc
mov edx, dword [ebp - 0xb0]
mov dword [ebp - 0xd4], edx
mov eax, dword [ebp - 0xd4]
push eax
call fcn.100c56b0
add esp, 4
cmp dword [ebp - 0xd4], 0
jne 0x100368a8
mov dword [ebp - 0xe8], 0
jmp 0x100368be
mov dword [ebp - 0xb0], 0x8123
mov ecx, dword [ebp - 0xb0]
mov dword [ebp - 0xe8], ecx
cmp dword [ebp - 0xbc], 2
jne 0x1003692a
mov dword [ebp - 0xb4], 0
jmp 0x100368e2
mov edx, dword [ebp - 0xb4]
add edx, 1
mov dword [ebp - 0xb4], edx
mov eax, dword [ebp - 0xb4]
cmp eax, dword [ebp - 0xa8]
jge 0x1003692a
mov ecx, dword [ebp - 0xb4]
mov edx, dword [ebp - 0xa0]
movzx eax, word [edx + ecx*2]
sar eax, 8
mov ecx, dword [ebp - 0xb4]
mov edx, dword [ebp - 0xa0]
movzx ecx, word [edx + ecx*2]
shl ecx, 8
or eax, ecx
mov edx, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0xa0]
mov word [ecx + edx*2], ax
jmp 0x100368d3
lea ecx, [ebp - 0x64]
call fcn.10019800
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.10019800
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.10019800
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x98]
call fcn.10019800
mov byte [ebp - 4], 3
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x18], 0
push 0x1c
lea ecx, [ebp - 0x80]
call fcn.10016920
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x11]
push eax
mov ecx, dword [ebp - 0xd8]
push ecx
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x98]
push ecx
lea edx, [ebp - 0x64]
push edx
lea ecx, [ebp - 0x80]
call fcn.10037010
mov dword [ebp - 0xa4], 0
jmp 0x100369ba
mov eax, dword [ebp - 0xa4]
add eax, 1
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0xa4]
cmp ecx, dword [ebp - 0xa8]
jge 0x10036c22
mov edx, dword [ebp - 0xa4]
mov eax, dword [ebp - 0xa0]
movzx ecx, word [eax + edx*2]
cmp ecx, 0xa
jne 0x100369ee
lea ecx, [ebp - 0x80]
call fcn.10036cd0
jmp 0x10036c1d
mov edx, dword [ebp - 0xa4]
mov eax, dword [ebp - 0xa0]
movzx ecx, word [eax + edx*2]
cmp ecx, 0xd
jne 0x10036a46
mov edx, dword [ebp - 0xa4]
add edx, 1
cmp edx, dword [ebp - 0xa8]
jge 0x10036a39
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0xa0]
movzx edx, word [ecx + eax*2 + 2]
cmp edx, 0xa
jne 0x10036a39
mov eax, dword [ebp - 0xa4]
add eax, 1
mov dword [ebp - 0xa4], eax
lea ecx, [ebp - 0x80]
call fcn.10036cd0
jmp 0x10036c1d
cmp dword [ebp - 0x18], 5
je 0x10036c1d
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xa0]
movzx eax, word [edx + ecx*2]
cmp eax, 0x3b
jne 0x10036a71
mov dword [ebp - 0x18], 5
jmp 0x10036c1d
cmp dword [ebp - 0x18], 0
jne 0x10036b0a
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xa0]
movzx eax, word [edx + ecx*2]
cmp eax, 0x3d
jne 0x10036a99
mov dword [ebp - 0x18], 5
jmp 0x10036b05
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xa0]
movzx eax, word [edx + ecx*2]
cmp eax, 0x5b
jne 0x10036ad0
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xa0]
movzx eax, word [edx + ecx*2]
push eax
lea ecx, [ebp - 0x64]
call fcn.10037430
mov dword [ebp - 0x18], 4
jmp 0x10036b05
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xa0]
movzx eax, word [edx + ecx*2]
cmp eax, 0x20
je 0x10036b05
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xa0]
movzx eax, word [edx + ecx*2]
push eax
lea ecx, [ebp - 0x4c]
call fcn.10037430
mov dword [ebp - 0x18], 1
jmp 0x10036c1d
cmp dword [ebp - 0x18], 1
jne 0x10036b61
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xa0]
movzx eax, word [edx + ecx*2]
cmp eax, 0x20
je 0x10036b3a
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xa0]
movzx eax, word [edx + ecx*2]
cmp eax, 0x3d
jne 0x10036b43
mov dword [ebp - 0x18], 2
jmp 0x10036b5c
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xa0]
movzx eax, word [edx + ecx*2]
push eax
lea ecx, [ebp - 0x4c]
call fcn.10037430
jmp 0x10036c1d
cmp dword [ebp - 0x18], 2
jne 0x10036bc1
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xa0]
movzx eax, word [edx + ecx*2]
cmp eax, 0x3d
jne 0x10036b8a
movzx ecx, byte [ebp - 0x11]
test ecx, ecx
jne 0x10036b8a
mov byte [ebp - 0x11], 1
jmp 0x10036bbf
mov edx, dword [ebp - 0xa4]
mov eax, dword [ebp - 0xa0]
movzx ecx, word [eax + edx*2]
cmp ecx, 0x20
je 0x10036bbf
mov edx, dword [ebp - 0xa4]
mov eax, dword [ebp - 0xa0]
movzx ecx, word [eax + edx*2]
push ecx
lea ecx, [ebp - 0x34]
call fcn.10037430
mov dword [ebp - 0x18], 3
jmp 0x10036c1d
cmp dword [ebp - 0x18], 3
jne 0x10036be2
mov edx, dword [ebp - 0xa4]
mov eax, dword [ebp - 0xa0]
movzx ecx, word [eax + edx*2]
push ecx
lea ecx, [ebp - 0x34]
call fcn.10037430
jmp 0x10036c1d
cmp dword [ebp - 0x18], 4
jne 0x10036c1d
mov edx, dword [ebp - 0xa4]
mov eax, dword [ebp - 0xa0]
movzx ecx, word [eax + edx*2]
push ecx
lea ecx, [ebp - 0x64]
call fcn.10037430
mov edx, dword [ebp - 0xa4]
mov eax, dword [ebp - 0xa0]
movzx ecx, word [eax + edx*2]
cmp ecx, 0x5b
jne 0x10036c1d
mov dword [ebp - 0x18], 5
jmp 0x100369ab
lea ecx, [ebp - 0x80]
call fcn.10036cd0
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0xdc], edx
mov eax, dword [ebp - 0xdc]
push eax
call fcn.100c56b0
add esp, 4
cmp dword [ebp - 0xdc], 0
jne 0x10036c5a
mov dword [ebp - 0xec], 0
jmp 0x10036c70
mov dword [ebp - 0xa0], 0x8123
mov ecx, dword [ebp - 0xa0]
mov dword [ebp - 0xec], ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x98]
call fcn.10019750
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.10019750
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.10019750
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.10019750
mov edx, dword [ebp - 0x9c]
push edx
call fcn.100cd261
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100c563c
mov esp, ebp
pop ebp
ret 4