Function at 0x1003f602
Capabilities:
Get common file path
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100688c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc0
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x34], edx
push 1
lea ecx, [esp + 0x94]
call fcn.1002b976
xor ebx, ebx
xor edx, edx
mov dword [esp + 0xc], ebx
inc edx
jmp 0x1003f65b
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x90]
mov dword [eax + ecx*4], 0xfffffffd
inc dword [esp + 0xc]
cmp dword [esp + 0xc], edx
jl 0x1003f645
mov dword [esp + 0xc], ebx
jmp 0x1003f673
mov eax, dword [esp + 0xc]
mov dword [esp + eax*4 + 0x4c], edx
inc dword [esp + 0xc]
cmp dword [esp + 0xc], 3
jl 0x1003f667
mov dword [esp + 0x54], ebx
jmp 0x1003f696
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x90]
mov dword [eax + ecx*4], 6
inc dword [esp + 0x54]
cmp dword [esp + 0x54], edx
jl 0x1003f680
lea ecx, [esp + 0x90]
call fcn.1002c9a6
cmp dword [esi + 0x10], ebx
jne 0x1003f6b4
xor al, al
jmp 0x1003fc63
xor edi, edi
lea ecx, [esp + 0x78]
inc edi
push edi
call fcn.1002b976
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x24], ebx
jmp 0x1003f6e5
mov eax, dword [esp + 0x24]
mov dword [esp + eax*4 + 0xa0], 0x7862
inc dword [esp + 0x24]
cmp dword [esp + 0x24], 2
jl 0x1003f6d2
lea edx, [esp + 0x78]
lea ecx, [esp + 0x24]
call fcn.1003e951
mov eax, dword [esp + 0x78]
xor ecx, ecx
inc ecx
mov dword [eax], ecx
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x10], ebx
jl 0x1003f745
mov dword [esp + 0x30], 0x1151c3c3
mov byte [esp + 0x1b], bl
cmp byte [esp + 0x1b], 0
je 0x1003f733
push 0x130
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x30]
call fcn.1003ea8e
dec dword [esp + 0x10]
jns 0x1003f714
xor ecx, ecx
inc ecx
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x78]
dec dword [eax]
jns 0x1003f702
mov dword [esp + 0xc], ebx
jmp 0x1003f780
mov dword [esp + 0x10], 0xfffffff7
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x10], ebx
jl 0x1003f77c
mov eax, dword [esp + 0x10]
cmp dword [esp + eax*4 + 0xa0], ebx
jne 0x1003f77c
dec dword [esp + 0x10]
jns 0x1003f769
inc dword [esp + 0xc]
cmp dword [esp + 0xc], ecx
jle 0x1003f757
or dword [esp + 0xd4], 0xffffffff
lea ecx, [esp + 0x78]
call fcn.1002c9a6
lea ecx, [esp + 0x34]
call fcn.1003ec50
cmp dword [esi + 0x14], 0x10
jb 0x1003f7aa
mov ecx, dword [esi]
jmp 0x1003f7ac
mov ecx, esi
xor edi, edi
inc edi
cmp dword [esi + 0x14], 0x10
mov dword [esp + 0x20], ecx
jb 0x1003f7bd
mov edx, dword [esi]
jmp 0x1003f7bf
mov edx, esi
mov eax, dword [esi + 0x10]
add eax, edx
cmp ecx, eax
je 0x1003fa94
mov dword [esp + 0x14], 0x565e08cc
lea ecx, [esp + 0x60]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], 0x1c587c7a
mov dword [esp + 0xc], 0xf928d9ba
mov dword [esp + 0x10], 0xa01c77dc
mov dword [esp + 0x10], 0x3997b09b
mov dword [esp + 0x10], 0x1fcc8af9
push 4
call fcn.1002b976
mov dword [esp + 0xd4], edi
lea edx, [esp + 0x60]
mov dword [esp + 0x10], 0xfffffff8
lea ecx, [esp + 0x9c]
call fcn.1003edbe
mov dword [esp + 0x10], ebx
mov edx, ebx
cmp dword [esp + 0x10], ebx
je 0x1003f838
mov edx, edi
mov eax, dword [esp + 0xc]
xor ecx, ecx
cmp edx, eax
setne cl
sub ecx, dword [esp + 0xc]
jne 0x1003f84d
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], ebx
jne 0x1003f863
mov eax, dword [esp + 0xc]
mov eax, dword [esp + 0xc]
xor edx, edx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
cmp eax, ecx
mov eax, dword [esp + 0x1c]
setne dl
xor ecx, ecx
cmp eax, 0xf576
setle cl
imul edx, ecx
test edx, edx
je 0x1003f89b
mov ecx, edi
cmp dword [esp + 0xc], ebx
jne 0x1003f89d
mov ecx, ebx
xor eax, eax
cmp ecx, edi
push 0xfffffffffffffffb
sete al
xor edx, edx
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp ecx, eax
mov eax, dword [esp + 0x64]
setne dl
mov dword [eax + 0xc], edx
pop eax
sub eax, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x10], 0xfffffff7
jmp 0x1003f8f3
mov dword [esp + 0x1c], ebx
jmp 0x1003f8e8
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x60]
call fcn.1003ef76
inc dword [esp + 0x1c]
cmp dword [esp + 0x1c], 4
jl 0x1003f8d7
dec dword [esp + 0x10]
cmp dword [esp + 0x10], 0xffffffe3
jle 0x1003f8d1
or dword [esp + 0xd4], 0xffffffff
lea ecx, [esp + 0x60]
call fcn.1002c9a6
mov eax, dword [esp + 0x20]
mov al, byte [eax]
cmp al, 0x30
jl 0x1003f930
cmp al, 0x39
jg 0x1003f930
lea edx, [esp + 0x20]
lea ecx, [esp + 0x34]
call fcn.1003f401
mov ecx, dword [esp + 0x20]
inc ecx
jmp 0x1003f7af
push 2
lea ecx, [esp + 0x44]
call fcn.1002b976
mov dword [esp + 0xc], 0xa66fe7d8
lea edx, [esp + 0x40]
mov dword [esp + 0x14], 0xfffffffe
lea ecx, [esp + 0x38]
call fcn.1003f497
mov dword [esp + 0xc], 1
cmp dword [esp + 0xc], ebx
jl 0x1003fa7b
mov dword [esp + 0x14], 2
mov dword [esp + 0x10], 0xfffe
mov dword [esp + 0x2c], 1
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x40]
mov eax, dword [eax + ecx*4]
neg eax
jne 0x1003fa18
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0xc]
mov esi, dword [esp + 0x40]
cmp dword [esi + eax*4], 0xc3f4f880
sbb eax, eax
xor ecx, ecx
inc eax
cmp eax, dword [esi + edx*4]
setle cl
xor edx, edx
cmp dword [esi + edi*4], ecx
setg dl
xor eax, eax
cmp edx, 0x84e5
setg al
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x40]
sub edx, 0x2a83a0f0
neg edx
sbb edx, edx
inc edx
sub edx, dword [eax + ecx*4]
xor ecx, ecx
mov eax, dword [esp + 0x40]
cmp edx, 0xffffffff
setge cl
xor edx, edx
cmp ecx, dword [eax + esi*4]
setg dl
sub edx, 0x593c8699
cmp edx, dword [esp + 0x10]
jle 0x1003fa18
mov ecx, ebx
jmp 0x1003fa1d
xor edi, edi
lea ecx, [edi + 1]
mov esi, dword [esp + 0xc]
xor eax, eax
mov edi, dword [esp + 0xc]
cmp ecx, 0xcea4
mov edx, dword [esp + 0x40]
setne al
xor ecx, ecx
cmp eax, dword [edx]
setl cl
xor eax, eax
cmp dword [edx + esi*4], ecx
setg al
cmp eax, dword [edx + edi*4]
jne 0x1003fa58
cmp dword [esp + 0x2c], ebx
jne 0x1003fa7b
mov eax, dword [esp + 0x40]
cmp dword [eax], ebx
jne 0x1003fa71
jmp 0x1003fa68
mov byte [esp + 0x1b], bl
cmp byte [esp + 0x1b], 0
je 0x1003fa68
call fcn.1003f4b6
mov eax, dword [esp + 0x40]
cmp dword [eax + 4], ebx
jne 0x1003fa7b
dec dword [esp + 0xc]
jns 0x1003f96a
lea ecx, [esp + 0x40]
call fcn.1002c9a6
mov eax, dword [esp + 0x34]
mov dword [eax], ebx
call fcn.1003f4d6
jmp 0x1003f6ad
push dword [esp + 0x38]
movdqa xmm0, xmmword [0x1000ada0]
lea eax, [esp + 0xcc]
push eax
lea eax, [esp + 0xc0]
mov dword [esp + 0x8c], ebx
push eax
push ebx
lea ecx, [esp + 0x94]
mov dword [esp + 0x98], ebx
movdqu xmmword [esp + 0xc8], xmm0
mov dword [esp + 0x9c], ebx
call fcn.10031190
mov dword [esp + 0xd4], 2
lea ecx, [esp + 0xa8]
mov dword [esp + 0x58], 0xfffffff6
push edi
call fcn.1002b976
mov byte [esp + 0xd4], 3
mov dword [esp + 0x2c], 0x1397
cmp dword [esp + 0x2c], 0x10b1
jge 0x1003fc2d
lea eax, [esp + 0x28]
push eax
push 0x1000a6d0
call fcn.1004f9db
pop ecx
pop ecx
push dword [esp + 0x28]
mov esi, ebx
lea ecx, [esp + 0x70]
mov dword [esp + 0x18], esi
call fcn.1002b976
mov byte [esp + 0xd4], 4
cmp dword [esp + 0x28], 0
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x30], ebx
jle 0x1003fb85
push edi
push 0x1000a6d0
call fcn.1004f9db
mov eax, dword [edi]
pop ecx
pop ecx
and eax, 0x80000001
jns 0x1003fb6f
dec eax
or eax, 0xfffffffe
inc eax
add esi, eax
add edi, 4
inc ebx
cmp ebx, dword [esp + 0x28]
jl 0x1003fb54
mov edi, dword [esp + 0x6c]
xor ebx, ebx
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x70]
mov byte [esp + 0x5c], bl
sub ecx, edi
push dword [esp + 0x5c]
sar ecx, 2
push edi
push dword [esp + 0x78]
call fcn.1003e259
mov ecx, dword [esp + 0x34]
xor eax, eax
sub ecx, esi
add esp, 0xc
cmp esi, ecx
setg al
mov dword [esp + 0x20], eax
mov eax, esi
sub eax, ecx
mov esi, ecx
sub esi, dword [esp + 0x14]
cmp dword [esp + 0x14], ecx
cmovg esi, eax
cmp esi, dword [esp + 0x28]
jne 0x1003fbcc
dec esi
xorps xmm0, xmm0
movlpd qword [esp + 0x38], xmm0
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
test esi, esi
jle 0x1003fc13
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x20]
mov eax, dword [edi + ebx*4]
and eax, 0x80000001
jns 0x1003fbf8
dec eax
or eax, 0xfffffffe
inc eax
cmp eax, edx
jne 0x1003fc0a
mov eax, dword [edi + ebx*4]
cdq
add dword [esp + 0x14], eax
adc ecx, edx
mov edx, dword [esp + 0x20]
inc ebx
cmp ebx, esi
jl 0x1003fbe9
mov edx, dword [esp + 0x14]
push ecx
push edx
push 0x1000a704
call fcn.1004fea2
add esp, 0xc
test edi, edi
je 0x1003fc2d
push edi
call fcn.10050017
pop ecx
lea edx, [esp + 0xa8]
lea ecx, [esp + 0xb4]
call fcn.1003f5bf
lea ecx, [esp + 0x58]
call fcn.1003f5de
lea ecx, [esp + 0xa8]
call fcn.1002c9a6
lea ecx, [esp + 0x84]
call fcn.1002c9a6
mov al, 1
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret