Function at 0x100014d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10017bc6
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x10020008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x5c], 0
push 0xc
mov ecx, dword [ebp + 8]
call fcn.10001aa0
mov ecx, dword [ebp + 8]
call fcn.10004ca0
mov dword [ebp - 0x90], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x5c]
or eax, 1
mov dword [ebp - 0x5c], eax
push 0x1001e02c
mov ecx, dword [ebp + 0xc]
call fcn.10004eb0
push eax
call fcn.1000dcdd
add esp, 8
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x10001a59
push 2
push 0
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.1000db1b
add esp, 0xc
mov edx, dword [ebp - 0x38]
push edx
call fcn.1000cf37
add esp, 4
mov dword [ebp - 0x58], eax
push 0
push 0
mov eax, dword [ebp - 0x38]
push eax
call fcn.1000db1b
add esp, 0xc
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x54], 0
cmp dword [ebp - 0x58], 2
jl 0x100016f1
mov ecx, 1
imul edx, ecx, 0
mov dword [ebp - 0x60], edx
cmp dword [ebp - 0x60], 3
jae 0x100015ae
jmp 0x100015b3
call fcn.10009a27
mov eax, dword [ebp - 0x60]
mov byte [ebp + eax - 0x14], 0
mov ecx, dword [ebp - 0x38]
push ecx
push 2
push 1
lea edx, [ebp - 0x14]
push edx
call fcn.1000dec0
add esp, 0x10
push 0
push 0
mov eax, dword [ebp - 0x38]
push eax
call fcn.1000db1b
add esp, 0xc
mov ecx, 1
imul edx, ecx, 0
movzx eax, byte [ebp + edx - 0x14]
cmp eax, 0xfe
jne 0x1000161b
mov ecx, 1
shl ecx, 0
movzx edx, byte [ebp + ecx - 0x14]
cmp edx, 0xff
jne 0x1000161b
mov dword [ebp - 0x4c], 3
mov dword [ebp - 0x54], 2
jmp 0x100016f1
mov eax, 1
imul ecx, eax, 0
movzx edx, byte [ebp + ecx - 0x14]
cmp edx, 0xff
jne 0x10001658
mov eax, 1
shl eax, 0
movzx ecx, byte [ebp + eax - 0x14]
cmp ecx, 0xfe
jne 0x10001658
mov dword [ebp - 0x4c], 2
mov dword [ebp - 0x54], 2
jmp 0x100016f1
cmp dword [ebp - 0x58], 3
jl 0x100016f1
mov edx, 1
imul eax, edx, 0
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 3
jae 0x10001675
jmp 0x1000167a
call fcn.10009a27
mov ecx, dword [ebp - 0x64]
mov byte [ebp + ecx - 0x14], 0
mov edx, dword [ebp - 0x38]
push edx
push 3
push 1
lea eax, [ebp - 0x14]
push eax
call fcn.1000dec0
add esp, 0x10
push 0
push 0
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.1000db1b
add esp, 0xc
mov edx, 1
imul eax, edx, 0
movzx ecx, byte [ebp + eax - 0x14]
cmp ecx, 0xef
jne 0x100016f1
mov edx, 1
shl edx, 0
movzx eax, byte [ebp + edx - 0x14]
cmp eax, 0xbb
jne 0x100016f1
mov ecx, 1
shl ecx, 1
movzx edx, byte [ebp + ecx - 0x14]
cmp edx, 0xbf
jne 0x100016f1
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x54], 3
mov eax, dword [ebp - 0x58]
sub eax, dword [ebp - 0x54]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.10009e5f
add esp, 4
mov dword [ebp - 0x78], eax
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x48], edx
push 0
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.1000db1b
add esp, 0xc
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x44]
push eax
push 1
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.1000dec0
add esp, 0x10
mov edx, dword [ebp - 0x38]
push edx
call fcn.1000d7e1
add esp, 4
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 3
ja case.default.0x10001759
mov ecx, dword [ebp - 0x68]
jmp dword [ecx*4 + 0x10001a78]
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x40], edx
jmp case.default.0x10001759
push 0
push 0
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x40], eax
jmp case.default.0x10001759
mov eax, dword [ebp - 0x44]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x40], eax
xor ecx, ecx
mov eax, dword [ebp - 0x40]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10009e5f
add esp, 4
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x40]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x34]
push edx
call fcn.1000af20
add esp, 0xc
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 3
ja case.default.0x100017d9
mov ecx, dword [ebp - 0x6c]
jmp dword [ecx*4 + 0x10001a88]
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x48]
push edx
push 0
push 0x4e4
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp case.default.0x100017d9
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x48]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp case.default.0x100017d9
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.1000c420
add esp, 0xc
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x70]
push edx
call fcn.10009900
add esp, 4
cmp dword [ebp - 0x70], 0
jne 0x10001853
mov dword [ebp - 0x80], 0
jmp 0x10001860
mov dword [ebp - 0x48], 0x8123
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x4c], 3
jne 0x100018a8
mov dword [ebp - 0x50], 0
jmp 0x10001878
mov ecx, dword [ebp - 0x50]
add ecx, 1
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
cmp edx, dword [ebp - 0x40]
jge 0x100018a8
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x34]
movzx edx, word [ecx + eax*2]
sar edx, 8
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x34]
movzx eax, word [ecx + eax*2]
shl eax, 8
or edx, eax
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x34]
mov word [eax + ecx*2], dx
jmp 0x1000186f
lea ecx, [ebp - 0x2c]
call fcn.100051c0
mov dword [ebp - 4], 1
mov byte [ebp - 0x2d], 0
mov dword [ebp - 0x3c], 0
jmp 0x100018cd
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
cmp edx, dword [ebp - 0x40]
jge 0x10001a05
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x34]
movzx edx, word [ecx + eax*2]
cmp edx, 0xa
jne 0x1000190f
movzx eax, byte [ebp - 0x2d]
test eax, eax
je 0x100018f6
mov byte [ebp - 0x2d], 0
jmp 0x1000190a
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10004c60
lea ecx, [ebp - 0x2c]
call fcn.10004ef0
jmp 0x10001a00
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x34]
movzx ecx, word [eax + edx*2]
cmp ecx, 0xd
jne 0x10001969
mov edx, dword [ebp - 0x3c]
add edx, 1
cmp edx, dword [ebp - 0x40]
jge 0x10001942
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x34]
movzx edx, word [ecx + eax*2 + 2]
cmp edx, 0xa
jne 0x10001942
mov eax, dword [ebp - 0x3c]
add eax, 1
mov dword [ebp - 0x3c], eax
movzx ecx, byte [ebp - 0x2d]
test ecx, ecx
je 0x10001950
mov byte [ebp - 0x2d], 0
jmp 0x10001964
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
call fcn.10004c60
lea ecx, [ebp - 0x2c]
call fcn.10004ef0
jmp 0x10001a00
movzx eax, byte [ebp - 0x2d]
test eax, eax
jne 0x10001a00
mov ecx, dword [ebp + 0x10]
call fcn.10004e10
movzx ecx, al
test ecx, ecx
jne 0x100019ed
mov ecx, dword [ebp + 0x10]
call fcn.10004e90
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp + 0x10]
call fcn.10004eb0
mov dword [ebp - 0x88], eax
mov edx, dword [ebp - 0x84]
push edx
mov eax, dword [ebp - 0x88]
push eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x34]
lea eax, [edx + ecx*2]
push eax
call fcn.1000e24c
add esp, 0xc
test eax, eax
jne 0x100019ed
lea ecx, [ebp - 0x2c]
call fcn.10004e10
movzx ecx, al
test ecx, ecx
jne 0x100019e7
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
call fcn.10004c60
lea ecx, [ebp - 0x2c]
call fcn.10004ef0
mov byte [ebp - 0x2d], 1
jmp 0x10001a00
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x34]
movzx edx, word [ecx + eax*2]
push edx
lea ecx, [ebp - 0x2c]
call fcn.10004f40
jmp 0x100018c4
movzx eax, byte [ebp - 0x2d]
test eax, eax
jne 0x10001a19
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10004c60
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x74]
push eax
call fcn.10009900
add esp, 4
cmp dword [ebp - 0x74], 0
jne 0x10001a3d
mov dword [ebp - 0x8c], 0
jmp 0x10001a4d
mov dword [ebp - 0x34], 0x8123
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x8c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.10004f60
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100098f2
mov esp, ebp
pop ebp
ret