Function at 0x1003b4d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
call fcn.10003980
test eax, eax
je 0x1003b744
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov esi, dword [ebp + 8]
lea ecx, [ebp - 4]
add eax, 0x10
push esi
mov dword [ebp - 4], eax
call fcn.10004a70
test al, al
jne 0x1003b529
test esi, esi
jne 0x1003b50b
xor ecx, ecx
jmp 0x1003b51f
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003b510
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 4]
call fcn.10004050
mov esi, dword [ebp - 4]
mov edi, dword [esi - 0xc]
test edi, edi
js 0x1003b753
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or ecx, eax
jge 0x1003b554
push edi
lea ecx, [ebp - 4]
call fcn.10003eb0
mov esi, dword [ebp - 4]
lea eax, [edi + 1]
push eax
push esi
call fcn.10201330
add esp, 8
cmp edi, dword [esi - 8]
jg 0x1003b753
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
mov ecx, 0x10256710
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.10020fd0
mov ebx, dword [ebp - 0x10]
cmp byte [ebx + 0xd], 0
jne 0x1003b605
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x1003b744
mov ecx, esi
jmp 0x1003b5a0
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x1003b5c6
test dx, dx
je 0x1003b5c2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x1003b5c6
add ecx, 4
add eax, 4
test dx, dx
jne 0x1003b5a0
xor eax, eax
jmp 0x1003b5cb
sbb eax, eax
or eax, 1
test eax, eax
js 0x1003b605
cmp ebx, dword [0x10256710]
je 0x1003b605
mov ebx, dword [ebx + 0x14]
test ebx, ebx
jne 0x1003b706
xor edi, edi
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1003b5fc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.1001d810
add esp, 4
push esi
test eax, eax
jne 0x1003b62f
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003b5e2
push 1
push 0x1024d040
push esi
call fcn.10035520
add esp, 0xc
jmp 0x1003b5e2
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x1003b5e2
lea ecx, [esi - 0x10]
push ecx
call fcn.10004ba0
add eax, 0x10
mov dword [ebp - 0x10], ebx
add esp, 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
mov ecx, 0x10256710
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.10020fd0
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ebp - 8], ecx
cmp byte [eax + 0xd], 0
jne 0x1003b68f
add eax, 0x10
mov ecx, 0x10256710
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.10023540
test al, al
je 0x1003b6eb
cmp dword [0x10256714], 0xaaaaaaa
je 0x1003b74e
mov ebx, dword [0x10256710]
push 0x18
call fcn.10213511
mov ecx, dword [ebp - 0x14]
mov edi, eax
add ecx, 0xfffffff0
push ecx
call fcn.10004ba0
add esp, 8
add eax, 0x10
mov dword [edi + 0x10], eax
mov ecx, 0x10256710
mov eax, dword [ebp - 4]
mov dword [edi + 0x14], eax
push edi
push dword [ebp - 8]
mov dword [edi], ebx
push dword [ebp - 0xc]
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov word [edi + 0xc], 0
call fcn.10007940
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003b706
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.SMCCreateInstanceImpl
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x1003b5e2
push dword [ebp + 0x1c]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
sub esp, 0x10
mov edx, esp
mov dword [edx], ecx
mov dword [edx + 4], eax
mov eax, dword [ebp + 0x14]
mov dword [edx + 8], eax
mov eax, dword [ebp + 0x18]
mov dword [edx + 0xc], eax
call edi
mov edi, eax
jmp 0x1003b5e4
push 0x80004005
call fcn.100030c0
call fcn.10007b50
push 0x80070057
call fcn.100030c0
int3