Function at 0x100dbf50
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c375d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x1e8
mov eax, dword [0x10223008]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x1b4], esi
mov dword [ebp - 0x19c], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x1d0], esi
mov dword [ebp - 0x1cc], edi
mov dword [ebp - 0x190], 0
call fcn.10004870
mov dword [ebp - 4], 0
mov dword [ebp - 0x190], 1
lea ecx, [ebp - 0x198]
call fcn.100a4e50
mov dword [ebp - 4], 1
mov byte [ebp - 4], 2
mov dword [ebp - 0x1b0], 0
mov dword [ebp - 0x1ac], 0
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 0x1a4], 0
mov dword [ebp - 0x1b8], 0
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1a0], eax
test eax, eax
je 0x100dc059
lea eax, [ebp - 0x1b8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x1a0]
test eax, eax
je 0x100dc09c
cmp dword [ebp - 0x1b8], 0
je 0x100dc09c
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x1b0], eax
push str.Wow64DisableWow64FsRedirection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1a8], eax
push str.Wow64RevertWow64FsRedirection
push dword [ebp - 0x1b0]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1ac], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1a8]
test eax, eax
je 0x100dc0bc
cmp dword [ebp - 0x1a4], 0
jne 0x100dc0bc
lea ecx, [ebp - 0x1a4]
push ecx
call eax
mov dword [ebp - 0x1bc], 0x102296c4
mov ecx, 0x102296c4
call fcn.100ce310
mov byte [ebp - 4], 4
cmp dword [0x102296c0], 0
jne 0x100dc0fa
push 1
call fcn.1018d5b5
add esp, 4
mov dword [ebp - 0x19c], eax
mov byte [ebp - 4], 5
mov byte [ebp - 4], 4
mov dword [0x102296c0], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1bc]
call fcn.100ce650
mov byte [ebp - 0x191], 0
cmp dword [edi + 0x10], 0
je 0x100dc6db
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x100dc124
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100dc6db
mov byte [ebp - 0x191], 1
mov dword [ebp - method.Poco::Any::ValueHolder.virtual_4], 0x101f50fc
mov dword [ebp - method.RC::DM::RCFileAttribute.virtual_0], vtable.RC::DM::RCFileAttribute.0
xorps xmm0, xmm0
movlpd qword [ebp - 0x1f0], xmm0
mov byte [ebp - 0x1e8], 0
movlpd qword [ebp - 0x1e0], xmm0
movlpd qword [ebp - 0x1d8], xmm0
mov byte [ebp - 4], 7
mov dword [ebp - method.Poco::Any::ValueHolder.virtual_4], 0x101f50fc
mov dword [ebp - method.RC::DM::RCDMFilePath.virtual_0], vtable.RC::DM::RCDMFilePath.0
lea ecx, [ebp - 0x104]
call fcn.10004870
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xec]
call fcn.10004870
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xd4]
call fcn.10004870
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xbc]
call fcn.10004870
mov byte [ebp - 4], 0xb
push edi
lea ecx, [ebp - 0x108]
call fcn.100d00b0
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x19c], 0x102296c4
mov ecx, 0x102296c4
call fcn.100ce310
mov byte [ebp - 4], 0xd
cmp dword [0x102296c0], 0
jne 0x100dc213
push 1
call fcn.1018d5b5
add esp, 4
mov dword [ebp - 0x1bc], eax
mov byte [ebp - 4], 0xe
mov byte [ebp - 4], 0xd
mov dword [0x102296c0], eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x19c]
call fcn.100ce650
lea eax, [ebp - 0x1f8]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.100d09c0
mov eax, dword [eax]
mov dword [ebp - 0x19c], eax
mov byte [ebp - 4], 0xf
mov dword [ebp - method.RC::DM::RCDMFilePath.virtual_0], vtable.RC::DM::RCDMFilePath.0
lea ecx, [ebp - 0xbc]
call fcn.10004770
lea ecx, [ebp - 0xd4]
call fcn.10004770
lea ecx, [ebp - 0xec]
call fcn.10004770
lea ecx, [ebp - 0x104]
call fcn.10004770
mov byte [ebp - 4], 7
cmp dword [ebp - 0x19c], 0
je 0x100dc2d5
mov byte [ebp - 4], 3
mov dword [ebp - method.RC::DM::RCFileAttribute.virtual_0], vtable.RC::DM::RCFileAttribute.0
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x1ac]
test eax, eax
je 0x100dc2ac
push dword [ebp - 0x1a4]
call eax
mov eax, dword [ebp - 0x1b0]
test eax, eax
je 0x100dc2bd
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x198]
call fcn.100a4ec0
mov byte [ebp - 4], 0
jmp 0x100dc7a2
cmp dword [ebp - 0x1ec], 0
ja 0x100dc3aa
jb 0x100dc2f4
cmp dword [ebp - 0x1f0], 0x10000
ja 0x100dc3aa
mov edx, edi
lea ecx, [ebp - 0x70]
call fcn.100dbc70
mov byte [ebp - 4], 0x13
lea edx, [ebp - 0x70]
cmp dword [ebp - 0x5c], 0x10
cmovae edx, dword [ebp - 0x70]
push ecx
push dword [ebp - 0x60]
lea ecx, [ebp - 0x88]
call fcn.100d36a0
add esp, 8
mov dword [ebp - 0x190], 5
mov dword [ebp - 0x190], 1
mov dword [ebp - 4], 0x12
mov dword [ebp - 0x190], 3
lea eax, [ebp - 0x88]
cmp esi, eax
je 0x100dc380
mov ecx, esi
call fcn.100049f0
movups xmm0, xmmword [ebp - 0x88]
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x78]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
xor eax, eax
mov word [ebp - 0x88], ax
mov dword [ebp - 0x190], 1
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x88]
call fcn.10004770
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x70]
call fcn.10004890
jmp 0x100dc684
push 0x80
push 3
push 1
push 0x80000000
push edi
lea ecx, [ebp - 0x198]
call fcn.100a4f30
mov esi, dword [ebp - 0x198]
test esi, esi
je 0x100dc67e
cmp dword [esi], 0xffffffff
je 0x100dc67e
lea ecx, [ebp - 0x188]
call fcn.101a49a0
mov byte [ebp - 4], 0x14
xorps xmm0, xmm0
movlpd qword [ebp - 0x50], xmm0
mov dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x1ec]
mov ecx, dword [ebp - 0x1f0]
shrd ecx, eax, 1
shr eax, 1
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x30], 0xffffd800
mov dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x28], 2
push 0x10229110
push 0x2800
call fcn.1018dc86
add esp, 8
mov cl, byte [ebp - 0x19c]
mov byte [ebp - 0x18c], cl
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x1c0], 0
push dword [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x1c4]
call fcn.100ce6b0
mov byte [ebp - 4], 0x15
mov al, 1
mov byte [ebp - 0x18c], al
xor edi, edi
mov dword [ebp - 0x1c8], edi
cmp edi, 3
jae 0x100dc53d
mov eax, edi
add eax, eax
mov ecx, dword [ebp + eax*8 - 0x50]
mov edx, dword [ebp + eax*8 - 0x4c]
cmp dword [esi], 0xffffffff
je 0x100dc536
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], edx
push dword [ebp + eax*8 - 0x48]
lea eax, [ebp - 0x54]
push eax
push ecx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x58], eax
cmp eax, 0xffffffff
jne 0x100dc4cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100dc536
mov dword [ebp - 0x1a0], 0
mov eax, dword [ebp - 0x1c4]
test eax, eax
je 0x100dc536
cmp dword [esi], 0xffffffff
je 0x100dc536
mov dword [ebp - 0x1a0], 0
push 0
lea ecx, [ebp - 0x1a0]
push ecx
push 0x2800
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100dc536
cmp dword [ebp - 0x1a0], 0x2800
jne 0x100dc536
push 0x2800
push dword [ebp - 0x1c4]
lea ecx, [ebp - 0x188]
mov eax, dword [ebp - 0x188]
call dword [eax + 0x10]
inc edi
jmp 0x100dc47f
mov byte [ebp - 0x18c], 0
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x100dc555
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x100dc555
mov dword [esi], 0xffffffff
cmp byte [ebp - 0x18c], 0
je 0x100dc638
lea ecx, [ebp - 0x188]
call fcn.101a4af0
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.101a5560
add esp, 8
mov byte [ebp - 4], 0x18
mov ecx, dword [eax + 0x10]
cmp dword [eax + 0x14], 0x10
jb 0x100dc58c
mov eax, dword [eax]
push ecx
push ecx
mov edx, eax
lea ecx, [ebp - 0xa0]
call fcn.100d36a0
add esp, 8
mov dword [ebp - 0x190], 0x21
mov dword [ebp - 0x190], 1
mov dword [ebp - 4], 0x17
mov dword [ebp - 0x190], 0x11
lea eax, [ebp - 0xa0]
mov esi, dword [ebp - 0x1b4]
cmp esi, eax
je 0x100dc60e
mov ecx, esi
call fcn.100049f0
movups xmm0, xmmword [ebp - 0xa0]
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x90]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
xor eax, eax
mov word [ebp - 0xa0], ax
mov dword [ebp - 0x190], 1
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0xa0]
call fcn.10004770
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x120]
call fcn.10004890
jmp 0x100dc63e
mov esi, dword [ebp - 0x1b4]
mov byte [ebp - 4], 0x19
mov edi, dword [ebp - 0x1c0]
test edi, edi
je 0x100dc66d
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x100dc66d
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x100dc66d
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x188]
call fcn.101a4a10
jmp 0x100dc684
mov esi, dword [ebp - 0x1b4]
mov eax, dword [ebp - 0x1ac]
test eax, eax
je 0x100dc696
push dword [ebp - 0x1a4]
call eax
mov byte [ebp - 4], 3
mov dword [ebp - method.RC::DM::RCFileAttribute.virtual_0], vtable.RC::DM::RCFileAttribute.0
mov byte [ebp - 4], 0x1a
mov eax, dword [ebp - 0x1ac]
test eax, eax
je 0x100dc6ba
push dword [ebp - 0x1a4]
call eax
mov eax, dword [ebp - 0x1b0]
test eax, eax
je 0x100dc6cb
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 2
mov dword [ebp - 4], 1
jmp 0x100dc793
mov byte [ebp - 4], 6
jmp 0x100dc29a
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x198]
call fcn.100a4ec0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1018d5a4
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret