Function at 0x1003dea0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ed5bd
mov eax, dword fs:[0]
push eax
sub esp, 0x88
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 - 0x54], ecx
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov edx, dword [ebp - 0x54]
mov al, byte [ebp + 0x14]
mov byte [edx + 0x18], al
push 0x101289e0
mov ecx, dword [ebp + 8]
call fcn.10018420
push eax
call fcn.100cd739
add esp, 8
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x1003e40d
push 2
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.100cd5b6
add esp, 0xc
mov edx, dword [ebp - 0x3c]
push edx
call fcn.100cd108
add esp, 4
mov dword [ebp - 0x5c], eax
push 0
push 0
mov eax, dword [ebp - 0x3c]
push eax
call fcn.100cd5b6
add esp, 0xc
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x58], 0
cmp dword [ebp - 0x5c], 2
jl 0x1003e09f
mov ecx, 1
imul edx, ecx, 0
mov dword [ebp - 0x60], edx
cmp dword [ebp - 0x60], 3
jae 0x1003df5c
jmp 0x1003df61
call fcn.100c57d7
mov eax, dword [ebp - 0x60]
mov byte [ebp + eax - 0x14], 0
mov ecx, dword [ebp - 0x3c]
push ecx
push 2
push 1
lea edx, [ebp - 0x14]
push edx
call fcn.100cd963
add esp, 0x10
push 0
push 0
mov eax, dword [ebp - 0x3c]
push eax
call fcn.100cd5b6
add esp, 0xc
mov ecx, 1
imul edx, ecx, 0
movzx eax, byte [ebp + edx - 0x14]
cmp eax, 0xfe
jne 0x1003dfc9
mov ecx, 1
shl ecx, 0
movzx edx, byte [ebp + ecx - 0x14]
cmp edx, 0xff
jne 0x1003dfc9
mov dword [ebp - 0x4c], 3
mov dword [ebp - 0x58], 2
jmp 0x1003e09f
mov eax, 1
imul ecx, eax, 0
movzx edx, byte [ebp + ecx - 0x14]
cmp edx, 0xff
jne 0x1003e006
mov eax, 1
shl eax, 0
movzx ecx, byte [ebp + eax - 0x14]
cmp ecx, 0xfe
jne 0x1003e006
mov dword [ebp - 0x4c], 2
mov dword [ebp - 0x58], 2
jmp 0x1003e09f
cmp dword [ebp - 0x5c], 3
jl 0x1003e09f
mov edx, 1
imul eax, edx, 0
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 3
jae 0x1003e023
jmp 0x1003e028
call fcn.100c57d7
mov ecx, dword [ebp - 0x64]
mov byte [ebp + ecx - 0x14], 0
mov edx, dword [ebp - 0x3c]
push edx
push 3
push 1
lea eax, [ebp - 0x14]
push eax
call fcn.100cd963
add esp, 0x10
push 0
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.100cd5b6
add esp, 0xc
mov edx, 1
imul eax, edx, 0
movzx ecx, byte [ebp + eax - 0x14]
cmp ecx, 0xef
jne 0x1003e09f
mov edx, 1
shl edx, 0
movzx eax, byte [ebp + edx - 0x14]
cmp eax, 0xbb
jne 0x1003e09f
mov ecx, 1
shl ecx, 1
movzx edx, byte [ebp + ecx - 0x14]
cmp edx, 0xbf
jne 0x1003e09f
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x58], 3
mov eax, dword [ebp - 0x5c]
sub eax, dword [ebp - 0x58]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.100c5ce1
add esp, 4
mov dword [ebp - 0x78], eax
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x48], edx
push 0
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.100cd5b6
add esp, 0xc
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x44]
push eax
push 1
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.100cd963
add esp, 0x10
mov edx, dword [ebp - 0x3c]
push edx
call fcn.100cd261
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.0x1003e107
mov ecx, dword [ebp - 0x68]
jmp dword [ecx*4 + 0x1003e428]
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x40], edx
jmp case.default.0x1003e107
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.0x1003e107
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.100c5ce1
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.100c7480
add esp, 0xc
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 3
ja case.default.0x1003e187
mov ecx, dword [ebp - 0x6c]
jmp dword [ecx*4 + 0x1003e438]
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.0x1003e187
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.0x1003e187
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.100c6f00
add esp, 0xc
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x70]
push edx
call fcn.100c56b0
add esp, 4
cmp dword [ebp - 0x70], 0
jne 0x1003e201
mov dword [ebp - 0x80], 0
jmp 0x1003e20e
mov dword [ebp - 0x48], 0x8123
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x4c], 3
jne 0x1003e256
mov dword [ebp - 0x50], 0
jmp 0x1003e226
mov ecx, dword [ebp - 0x50]
add ecx, 1
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
cmp edx, dword [ebp - 0x40]
jge 0x1003e256
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 0x1003e21d
lea ecx, [ebp - 0x2c]
call fcn.10019800
mov dword [ebp - 4], 0
mov byte [ebp - 0x2d], 0
mov dword [ebp - 0x38], 0
jmp 0x1003e27b
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
cmp edx, dword [ebp - 0x40]
jge 0x1003e3a7
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
movzx edx, word [ecx + eax*2]
cmp edx, 0xa
jne 0x1003e2cc
movzx eax, byte [ebp - 0x2d]
test eax, eax
je 0x1003e2a4
mov byte [ebp - 0x2d], 0
jmp 0x1003e2c7
mov ecx, dword [ebp - 0x54]
add ecx, 0xc
mov dword [ebp - 0x84], ecx
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp - 0x84]
call fcn.10025270
lea ecx, [ebp - 0x2c]
call fcn.10025510
jmp 0x1003e3a2
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
movzx edx, word [ecx + eax*2]
cmp edx, 0xd
jne 0x1003e332
mov eax, dword [ebp - 0x38]
add eax, 1
cmp eax, dword [ebp - 0x40]
jge 0x1003e2ff
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
movzx eax, word [edx + ecx*2 + 2]
cmp eax, 0xa
jne 0x1003e2ff
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
movzx edx, byte [ebp - 0x2d]
test edx, edx
je 0x1003e30d
mov byte [ebp - 0x2d], 0
jmp 0x1003e330
mov eax, dword [ebp - 0x54]
add eax, 0xc
mov dword [ebp - 0x88], eax
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x88]
call fcn.10025270
lea ecx, [ebp - 0x2c]
call fcn.10025510
jmp 0x1003e3a2
movzx edx, byte [ebp - 0x2d]
test edx, edx
jne 0x1003e3a2
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
movzx edx, word [ecx + eax*2]
cmp edx, 0x3b
jne 0x1003e38f
cmp dword [ebp - 0x38], 0
je 0x1003e357
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1003e38f
lea ecx, [ebp - 0x2c]
call fcn.100194d0
movzx ecx, al
test ecx, ecx
jne 0x1003e389
mov edx, dword [ebp - 0x54]
add edx, 0xc
mov dword [ebp - 0x8c], edx
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x8c]
call fcn.10025270
lea ecx, [ebp - 0x2c]
call fcn.10025510
mov byte [ebp - 0x2d], 1
jmp 0x1003e3a2
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
movzx eax, word [edx + ecx*2]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10037430
jmp 0x1003e272
movzx ecx, byte [ebp - 0x2d]
test ecx, ecx
jne 0x1003e3ca
mov edx, dword [ebp - 0x54]
add edx, 0xc
mov dword [ebp - 0x90], edx
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x90]
call fcn.10025270
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0x74]
push edx
call fcn.100c56b0
add esp, 4
cmp dword [ebp - 0x74], 0
jne 0x1003e3ee
mov dword [ebp - 0x94], 0
jmp 0x1003e3fe
mov dword [ebp - 0x34], 0x8123
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x94], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10019750
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 0x10