Function at 0x103c8ed
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x10a5fc5
call fcn.0103f400
sub esp, 0x6c
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x30], 0x8007054f
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x54], ebx
xor eax, eax
lea edi, [ebp - 0x50]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.01039733
lea edx, [ebp - 0x54]
mov ecx, eax
call fcn.0104187a
mov esi, eax
cmp esi, ebx
jge 0x103c963
push esi
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], ebx
call fcn.0103903e
push esi
call fcn.0105d125
mov ebx, eax
jmp 0x103ce6d
lea ecx, [edi + 0x20]
call fcn.01039733
lea edx, [ebp - 0x48]
mov ecx, eax
call fcn.0104187a
mov esi, eax
cmp esi, ebx
jl 0x103c93c
lea esi, [ebp - 0x54]
lea edi, [ebp - 0x78]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x48]
lea edi, [ebp - 0x6c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x1008374
lea edi, [ebp - 0x60]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x78]
push eax
movsd dword es:[edi], dword [esi]
push 3
push ebx
movsd dword es:[edi], dword [esi]
call fcn.01041ed6
mov esi, eax
cmp esi, ebx
jl 0x103c93c
push dword [ebp - 0x24]
lea ecx, [ebp - 0x14]
call fcn.0103c8a5
push dword [ebp - 0x14]
mov esi, dword [ebp + 0x18]
push esi
mov byte [ebp - 4], 1
call fcn.0103eb72
mov edi, eax
cmp edi, ebx
jge 0x103c9e0
push edi
push 1
push ebx
push ebx
call fcn.0105d0e0
mov ebx, edi
jmp case.default.0x103cd9c
push dword [esi + 0x18]
call dword [sym.imp.imagehlp.dll_ImageNtHeader]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x103ce77
lea eax, [ebp - 0x18]
push eax
push 0xe
push ebx
push dword [esi + 0x18]
call dword [sym.imp.imagehlp.dll_ImageDirectoryEntryToData]
mov edi, eax
cmp edi, ebx
mov dword [ebp + 0x18], edi
je 0x103ce77
cmp dword [ebp - 0x18], ebx
je 0x103ce77
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [esi + 0x18]
mov dword [ebp - 0x20], ebx
call fcn.0103e938
mov esi, eax
cmp esi, ebx
jl 0x103ce56
mov esi, dword [ebp + 0x14]
push dword [ebp - 0x20]
mov ecx, esi
call fcn.01039387
mov eax, dword [esi]
cmp eax, ebx
je 0x103cac2
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp eax, ebx
je 0x103cac2
mov eax, dword [esi]
mov edi, dword [sym.imp.msvcrt.dll__wcsnicmp]
push 5
push 0x10056f4
push eax
call edi
add esp, 0xc
test eax, eax
je 0x103ca7e
mov eax, dword [esi]
push 5
push 0x10056e8
push eax
call edi
add esp, 0xc
test eax, eax
jne 0x103cabf
mov ecx, dword [ebp + 0x10]
push 0x10056d4
call fcn.01039387
mov ecx, dword [ebp + 0x10]
push esi
call fcn.01038e25
push 0x10056c0
lea ecx, [ebp + 0xc]
call fcn.01039357
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
mov byte [ebp - 4], 2
call fcn.01038e25
push dword [ebp + 0xc]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp case.default.0x103cd9c
mov edi, dword [ebp + 0x18]
mov eax, dword [edi + 0x10]
mov cl, byte [edi + 0x10]
shr eax, 1
and cl, 1
and al, 1
cmp cl, bl
mov byte [ebp - 0xd], cl
mov byte [ebp + 0x1b], al
je 0x103cba6
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 0x14]
call fcn.01039762
push 0x10056bc
push 0x10056a4
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 3
call fcn.0103a0db
push dword [ebp + 0x14]
lea ecx, [ebp - 0x14]
call fcn.01039527
test eax, eax
je 0x103cb94
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x103cb94
push dword [ebp + 0x14]
mov esi, dword [ebp + 0x1c]
push esi
call fcn.0103eb72
mov edi, eax
cmp edi, ebx
jge 0x103cb4e
push edi
push 1
push ebx
push ebx
call fcn.0105d0e0
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
mov ebx, edi
call fcn.01038e46
jmp case.default.0x103cd9c
push dword [esi + 0x18]
call dword [sym.imp.imagehlp.dll_ImageNtHeader]
mov edi, eax
cmp edi, ebx
je 0x103cb94
lea eax, [ebp + 0x1c]
push eax
push 0xe
push ebx
push dword [esi + 0x18]
mov dword [ebp + 0x1c], ebx
call dword [sym.imp.imagehlp.dll_ImageDirectoryEntryToData]
cmp eax, ebx
je 0x103cb94
mov ecx, dword [ebp + 0x1c]
cmp ecx, ebx
je 0x103cb94
mov dword [ebp - 0x18], ecx
mov cl, byte [eax + 0x10]
mov eax, dword [eax + 0x10]
and cl, 1
shr eax, 1
and al, 1
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0xd], cl
mov byte [ebp + 0x1b], al
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.01038e46
mov cl, byte [ebp - 0xd]
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 0x18]
cmp ax, 0x20b
mov byte [ebp + 0x17], 1
jne 0x103cbd1
mov byte [ebp + 0x17], bl
cmp cl, bl
lea ecx, [ebp + 0x1c]
je 0x103cbfa
push 0x100569c
call fcn.01039357
mov byte [ebp - 4], 4
jmp 0x103cc08
cmp ax, 0x10b
je 0x103cbba
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0xf0]
cmp dword [esi], ebx
je 0x103ce51
push ebx
push ebx
push dword [0x10a89e4]
push 0xc1010015
jmp 0x103ce40
push 0x1005690
call fcn.01039357
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0x1c]
push eax
call fcn.01038e25
push dword [ebp + 0x1c]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 1
call esi
mov edi, 0x100568c
push edi
lea ecx, [ebp + 0x1c]
call fcn.01039357
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0x1c]
push eax
mov byte [ebp - 4], 6
call fcn.01038e25
push dword [ebp + 0x1c]
mov byte [ebp - 4], 1
call esi
cmp byte [ebp + 0x1b], bl
lea ecx, [ebp + 0x1c]
je 0x103cc62
push 0x1005674
call fcn.01039357
mov byte [ebp - 4], 7
jmp 0x103cc70
push 0x1005658
call fcn.01039357
mov byte [ebp - 4], 8
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0x1c]
push eax
call fcn.01038e25
push dword [ebp + 0x1c]
mov byte [ebp - 4], 1
call esi
push edi
lea ecx, [ebp + 0x1c]
call fcn.01039357
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0x1c]
push eax
mov byte [ebp - 4], 9
call fcn.01038e25
push dword [ebp + 0x1c]
mov byte [ebp - 4], 1
call esi
cmp byte [ebp + 0x17], bl
lea ecx, [ebp + 0x1c]
je 0x103ccbf
push 0x1005650
call fcn.01039357
mov byte [ebp - 4], 0xa
jmp 0x103cccd
push 0x1005644
call fcn.01039357
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0x1c]
push eax
call fcn.01038e25
push dword [ebp + 0x1c]
mov byte [ebp - 4], 1
call esi
push edi
lea ecx, [ebp + 0x1c]
call fcn.01039357
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0x1c]
push eax
mov byte [ebp - 4], 0xc
call fcn.01038e25
push dword [ebp + 0x1c]
mov byte [ebp - 4], 1
call esi
mov edi, dword [ebp - 0x1c]
movzx eax, word [edi + 4]
cmp ax, 0x14c
lea ecx, [ebp + 0x1c]
jne 0x103cd24
push 0x1005640
call fcn.01039357
mov byte [ebp - 4], 0xd
jmp 0x103cd5e
cmp ax, 0x200
jne 0x103cd3a
push 0x1005638
call fcn.01039357
mov byte [ebp - 4], 0xe
jmp 0x103cd5e
cmp ax, 0x8664
jne 0x103cd50
push 0x1005630
call fcn.01039357
mov byte [ebp - 4], 0xf
jmp 0x103cd5e
push 0x100561c
call fcn.01039357
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0x1c]
push eax
call fcn.01038e25
push dword [ebp + 0x1c]
mov byte [ebp - 4], 1
call esi
mov al, byte [ebp + 0x1b]
xor ecx, ecx
cmp byte [ebp + 0x17], bl
sete cl
neg al
sbb eax, eax
and eax, 2
or ecx, eax
mov al, byte [ebp - 0xd]
neg al
sbb eax, eax
and eax, 4
or ecx, eax
cmp ecx, 7
ja case.default.0x103cd9c
jmp dword [ecx*4 + 0x103cebd]
push 0x1005640
mov ecx, dword [ebp + 0xc]
jmp 0x103ce1f
movzx eax, word [edi + 4]
cmp ax, 0x200
jne 0x103cdbe
push 0x1005638
jmp 0x103cda8
cmp ax, 0x8664
jne 0x103cdcb
push 0x1005630
jmp 0x103cda8
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0xf0]
cmp dword [esi], ebx
je 0x103ce51
push ebx
push ebx
push dword [0x10a89e4]
push 0xc1010016
jmp 0x103ce40
cmp word [edi + 4], 0x14c
je 0x103ce0b
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0xf0]
cmp dword [esi], ebx
je 0x103ce51
push ebx
push ebx
push dword [0x10a89e4]
push 0xc1010017
jmp 0x103ce40
cmp byte [ebp + 0x1b], bl
mov ecx, dword [ebp + 0xc]
je 0x103ce1a
push 0x1005640
jmp 0x103ce1f
push 0x1005614
call fcn.01039387
jmp case.default.0x103cd9c
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0xf0]
cmp dword [esi], ebx
je 0x103ce51
push ebx
push ebx
push dword [0x10a89e4]
push 0xc1010018
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push dword [edi + 0xf4]
call dword [esi]
mov esi, 0x8000ffff
push esi
push 1
push ebx
push ebx
call fcn.0105d0e0
mov ebx, esi
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.01038e46
lea ecx, [ebp - 0x2c]
call fcn.0102034d
jmp 0x103ceaa
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], 1
call fcn.01038e46
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0102034d
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x100542c
call fcn.01039078
mov ebx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18