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

Disassembly:
mov eax, 0x109dd74
call fcn.0103c548
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.01036846
lea edx, [ebp - 0x54]
mov ecx, eax
call fcn.0103f3c6
mov esi, eax
cmp esi, ebx
jge 0x1039c1a
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.01035fb6
push esi
lea ecx, [ebp - 0x3c]
call fcn.01036028
jmp 0x1039d96
lea ecx, [edi + 0x20]
call fcn.01036846
lea edx, [ebp - 0x48]
mov ecx, eax
call fcn.0103f3c6
mov esi, eax
cmp esi, ebx
jl 0x1039bf2
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, 0x1006e24
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.0103fa9e
mov esi, eax
cmp esi, ebx
jl 0x1039bf2
push dword [ebp - 0x24]
lea ecx, [ebp - 0x14]
call fcn.01039b56
push dword [ebp - 0x14]
mov esi, dword [ebp + 0x18]
push esi
mov byte [ebp - 4], 1
call fcn.0103bfc5
mov edi, eax
cmp edi, ebx
jge 0x1039c98
push edi
push 1
push ebx
push ebx
call fcn.0105d833
mov dword [ebp - 0x30], edi
jmp 0x1039d8b
push dword [esi + 0x18]
call dword [sym.imp.imagehlp.dll_ImageNtHeader]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x103a147
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 0x103a147
cmp dword [ebp - 0x18], ebx
je 0x103a147
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [esi + 0x18]
mov dword [ebp - 0x20], ebx
call fcn.0103bd4c
mov esi, eax
cmp esi, ebx
jge 0x1039cfa
push esi
push 1
push ebx
push ebx
call fcn.0105d833
mov dword [ebp - 0x30], esi
jmp 0x1039d8b
mov esi, dword [ebp + 0x14]
push dword [ebp - 0x20]
mov ecx, esi
call fcn.010363bf
mov eax, dword [esi]
cmp eax, ebx
je 0x1039da6
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp eax, ebx
je 0x1039da6
mov eax, dword [esi]
mov edi, dword [sym.imp.msvcrt.dll__wcsnicmp]
push 5
push 0x1004ba0
push eax
call edi
add esp, 0xc
test eax, eax
je 0x1039d4c
mov eax, dword [esi]
push 5
push 0x1004b94
push eax
call edi
add esp, 0xc
test eax, eax
jne 0x1039da3
mov ecx, dword [ebp + 0x10]
push 0x1004b80
call fcn.010363bf
mov ecx, dword [ebp + 0x10]
push esi
call fcn.01035d9c
push 0x1004b6c
lea ecx, [ebp + 0xc]
call fcn.01036388
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
mov byte [ebp - 4], 2
call fcn.01035d9c
push dword [ebp + 0xc]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x30], ebx
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.01035dc4
lea ecx, [ebp - 0x2c]
call fcn.0101cd79
jmp 0x103a177
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 0x1039e8d
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 0x14]
call fcn.010368a7
push 0x1004b68
push 0x1004b50
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 3
call fcn.01037245
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.01036860
test al, al
je 0x1039e7b
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1039e7b
push dword [ebp + 0x14]
mov esi, dword [ebp + 0x1c]
push esi
call fcn.0103bfc5
mov edi, eax
cmp edi, ebx
jge 0x1039e35
push edi
push 1
push ebx
push ebx
call fcn.0105d833
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
mov dword [ebp - 0x30], edi
call fcn.01035dc4
jmp 0x1039d8b
push dword [esi + 0x18]
call dword [sym.imp.imagehlp.dll_ImageNtHeader]
mov edi, eax
cmp edi, ebx
je 0x1039e7b
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 0x1039e7b
mov ecx, dword [ebp + 0x1c]
cmp ecx, ebx
je 0x1039e7b
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.01035dc4
mov cl, byte [ebp - 0xd]
mov eax, dword [ebp - 0x1c]
mov ax, word [eax + 0x18]
cmp ax, 0x20b
mov byte [ebp + 0x17], 1
jne 0x1039eb8
mov byte [ebp + 0x17], bl
cmp cl, bl
lea ecx, [ebp + 0x1c]
je 0x1039ee1
push 0x1004b48
call fcn.01036388
mov byte [ebp - 4], 4
jmp 0x1039eef
cmp ax, 0x10b
je 0x1039ea1
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0xf0]
cmp dword [esi], ebx
je 0x103a13d
push ebx
push ebx
push dword [0x10a0994]
push 0xc1010015
jmp 0x103a12c
push 0x1004b3c
call fcn.01036388
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0x1c]
push eax
call fcn.01035d9c
push dword [ebp + 0x1c]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 1
call esi
mov edi, 0x1006db4
push edi
lea ecx, [ebp + 0x1c]
call fcn.01036388
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0x1c]
push eax
mov byte [ebp - 4], 6
call fcn.01035d9c
push dword [ebp + 0x1c]
mov byte [ebp - 4], 1
call esi
cmp byte [ebp + 0x1b], bl
lea ecx, [ebp + 0x1c]
je 0x1039f49
push 0x1004b24
call fcn.01036388
mov byte [ebp - 4], 7
jmp 0x1039f57
push 0x1004b08
call fcn.01036388
mov byte [ebp - 4], 8
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0x1c]
push eax
call fcn.01035d9c
push dword [ebp + 0x1c]
mov byte [ebp - 4], 1
call esi
push edi
lea ecx, [ebp + 0x1c]
call fcn.01036388
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0x1c]
push eax
mov byte [ebp - 4], 9
call fcn.01035d9c
push dword [ebp + 0x1c]
mov byte [ebp - 4], 1
call esi
cmp byte [ebp + 0x17], bl
lea ecx, [ebp + 0x1c]
je 0x1039fa6
push 0x1004b00
call fcn.01036388
mov byte [ebp - 4], 0xa
jmp 0x1039fb4
push 0x1004af4
call fcn.01036388
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0x1c]
push eax
call fcn.01035d9c
push dword [ebp + 0x1c]
mov byte [ebp - 4], 1
call esi
push edi
lea ecx, [ebp + 0x1c]
call fcn.01036388
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0x1c]
push eax
mov byte [ebp - 4], 0xc
call fcn.01035d9c
push dword [ebp + 0x1c]
mov byte [ebp - 4], 1
call esi
mov edi, dword [ebp - 0x1c]
mov ax, word [edi + 4]
cmp ax, 0x14c
lea ecx, [ebp + 0x1c]
jne 0x103a00b
push 0x1004af0
call fcn.01036388
mov byte [ebp - 4], 0xd
jmp 0x103a045
cmp ax, 0x200
jne 0x103a021
push 0x1004ae8
call fcn.01036388
mov byte [ebp - 4], 0xe
jmp 0x103a045
cmp ax, 0x8664
jne 0x103a037
push 0x1004ae0
call fcn.01036388
mov byte [ebp - 4], 0xf
jmp 0x103a045
push 0x1004acc
call fcn.01036388
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0x1c]
push eax
call fcn.01035d9c
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.0x103a083
jmp dword [ecx*4 + 0x103a18b]
push 0x1004af0
mov ecx, dword [ebp + 0xc]
jmp 0x103a108
mov di, word [edi + 4]
cmp di, 0x200
jne 0x103a0a6
push 0x1004ae8
jmp 0x103a08f
cmp di, 0x8664
jne 0x103a0b4
push 0x1004ae0
jmp 0x103a08f
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0xf0]
cmp dword [esi], ebx
je 0x103a13d
push ebx
push ebx
push dword [0x10a0994]
push 0xc1010016
jmp 0x103a12c
cmp word [edi + 4], 0x14c
je 0x103a0f4
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0xf0]
cmp dword [esi], ebx
je 0x103a13d
push ebx
push ebx
push dword [0x10a0994]
push 0xc1010017
jmp 0x103a12c
cmp byte [ebp + 0x1b], bl
mov ecx, dword [ebp + 0xc]
je 0x103a103
push 0x1004af0
jmp 0x103a108
push 0x1004ac4
call fcn.010363bf
jmp case.default.0x103a083
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0xf0]
cmp dword [esi], ebx
je 0x103a13d
push ebx
push ebx
push dword [0x10a0994]
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
jmp 0x1039ce8
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], ebx
call fcn.01035dc4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0101cd79
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x10048a8
call fcn.01035ffe
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x30]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18