Function at 0x1000118c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10055d05
push eax
mov dword fs:[0], esp
sub esp, 0xc8
push ebx
push esi
push edi
mov edi, edx
cmp byte [edi], 0x50
jne 0x100018a3
cmp byte [edi + 1], 0x4b
jne 0x100018a3
mov dword [esp + 0x28], 0xb905d09e
xor esi, esi
inc esi
xor ebx, ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x18], 9
mov dword [esp + 0x18], 0x615e82aa
mov dword [esp + 0x1c], 0x661fbc9f
mov dword [esp + 0x30], 0x7c2076ac
mov dword [esp + 0x20], 0x7c28cae2
mov dword [esp + 0x34], 0x3d62
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x10], 0xee3b00b
mov dword [esp + 0x10], 0xcc414254
mov dword [esp + 0xc], ebx
jmp 0x10001234
mov eax, dword [esp + 0xc]
mov dword [esp + eax*4 + 0x60], 0xd700698
inc dword [esp + 0xc]
cmp dword [esp + 0xc], 2
jl 0x10001224
mov dword [esp + 0xc], ebx
jmp 0x10001251
mov eax, dword [esp + 0xc]
mov dword [esp + eax*4 + 0x48], 0x139a53aa
inc dword [esp + 0xc]
cmp dword [esp + 0xc], esi
jl 0x10001241
mov eax, dword [esp + 0x28]
xor edx, edx
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x30]
cmp ecx, eax
mov eax, dword [esp + 0x10]
setle dl
sub eax, 9
inc dword [esp + 0x10]
cmp eax, edx
mov eax, esi
cmovl eax, ebx
xor edx, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
cmp eax, 0x71bc7dcd
mov eax, dword [esp + 0x64]
setle dl
xor ecx, ecx
neg edx
cmp edx, eax
mov eax, dword [esp + 0x20]
setg cl
cmp esi, ecx
sbb ecx, ecx
neg ecx
imul eax, ecx
test eax, eax
jne 0x100012b0
mov eax, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
inc dword [esp + 0x48]
mov dword [esp + 0x10], ebx
jmp 0x100012de
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x24], 0xc75b57fd
inc dword [esp + 0x10]
cmp dword [esp + 0x10], esi
jl 0x100012ce
mov dword [esp + 0x24], 0xf
jmp 0x1000137a
mov dword [esp + 0x10], 0x25f5
xor edx, edx
mov dword [esp + 0x18], 0xe318b474
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
imul ecx, dword [esp + 0x24], 0xa955
mov eax, dword [esp + 0x10]
add ecx, 0x855eec80
cmp eax, ecx
setne dl
imul edx, dword [esp + 0x10]
test edx, edx
jne 0x10001333
mov ecx, ebx
cmp dword [esp + 0x24], ebx
je 0x10001335
mov ecx, esi
mov eax, dword [esp + 0x24]
add ecx, 0xf99f29b4
xor edx, edx
cmp ecx, eax
setl dl
cmp edx, dword [esp + 0x24]
je 0x10001354
mov ecx, esi
cmp dword [esp + 0x10], ebx
jne 0x10001356
mov ecx, ebx
mov eax, dword [esp + 0x24]
xor edx, edx
cmp ecx, eax
mov eax, dword [esp + 0x24]
setge dl
xor ecx, ecx
cmp edx, eax
mov eax, dword [esp + 0x10]
setl cl
add eax, ecx
mov dword [esp + 0x18], eax
dec dword [esp + 0x24]
cmp dword [esp + 0x24], esi
jne 0x100012f1
mov al, byte [edi + 2]
lea ecx, [esp + 0x74]
push 3
mov byte [esp + 0x33], al
call fcn.100018bd
mov dword [esp + 0x18], 0x7182abbf
mov dword [esp + 0x18], 0x579253a3
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x18], 0xfffffffb
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x18], 0x7383cc47
mov dword [esp + 0x18], esi
mov dword [esp + 0x18], 0x6f9f1111
mov dword [esp + 0xc], ebx
jmp 0x100013eb
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x74]
mov dword [eax + ecx*4], 0x399841b3
inc dword [esp + 0xc]
cmp dword [esp + 0xc], 3
jl 0x100013d8
mov dword [esp + 0xc], ebx
jmp 0x1000140b
mov eax, dword [esp + 0xc]
mov dword [esp + eax*4 + 0xbc], 0x61a6520
inc dword [esp + 0xc]
cmp dword [esp + 0xc], 2
jl 0x100013f8
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x74]
or dword [esp + 0xdc], 0xffffffff
mov dword [eax], 0xfffffff8
call fcn.10001940
mov al, byte [edi + 3]
mov dword [esp + 0x28], 0xedf6
mov dword [esp + 0x1c], 0xfffffffc
mov byte [esp + 0x17], al
movzx eax, byte [esp + 0x2f]
mov dword [esp + 0x1c], 0x4a7d2ae8
add eax, 4
mov dword [esp + 0x18], 0x7b8b0d58
mov dword [esp + 0x20], 0x796a450c
mov dword [esp + 0x30], eax
mov dword [esp + 0xc], ebx
jmp 0x1000147a
mov eax, dword [esp + 0xc]
mov dword [esp + eax*4 + 0x38], ebx
inc dword [esp + 0xc]
cmp dword [esp + 0xc], 4
jl 0x1000146e
mov dword [esp + 0xc], ebx
jmp 0x1000149a
mov eax, dword [esp + 0xc]
mov dword [esp + eax*4 + 0xa8], 0x68c0aa39
inc dword [esp + 0xc]
cmp dword [esp + 0xc], 2
jl 0x10001487
mov eax, dword [esp + 0x44]
xor edx, edx
mov eax, dword [esp + 0x44]
mov eax, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
cmp eax, 0x51ef9953
mov eax, dword [esp + 0x28]
setle dl
neg eax
xor ecx, ecx
cmp eax, edx
setl cl
add ecx, 0xab56
imul ecx, dword [esp + 0x44]
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x44], ebx
je 0x100014f5
mov edx, esi
cmp dword [esp + 0x28], ebx
jne 0x100014f7
mov edx, ebx
mov esi, dword [esp + 0x44]
xor ecx, ecx
mov dword [esp + 0xa8], esi
mov eax, dword [esp + 0x44]
cmp edx, eax
mov eax, dword [esp + 0x44]
setne cl
xor edx, edx
cmp ecx, eax
mov eax, dword [esp + 0x44]
push 3
sete dl
xor ecx, ecx
cmp edx, eax
setg cl
imul ecx, esi
pop esi
push esi
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x6c]
dec dword [esp + 0x24]
call fcn.100018bd
mov dword [esp + 0xc], ebx
jmp 0x10001554
mov eax, dword [esp + 0xc]
mov dword [esp + eax*4 + 0xb0], 1
inc dword [esp + 0xc]
cmp dword [esp + 0xc], esi
jl 0x10001541
mov dword [esp + 0xc], ebx
jmp 0x10001573
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x68]
mov dword [eax + ecx*4], 0x596960f5
inc dword [esp + 0xc]
cmp dword [esp + 0xc], esi
jl 0x10001560
mov ecx, dword [esp + 0x68]
mov dword [ecx + 4], 2
mov eax, dword [ecx + 4]
cmp dword [esp + eax*4 + 0xb0], ebx
jne 0x10001595
dec dword [ecx + 4]
jns 0x10001584
lea ecx, [esp + 0x68]
call fcn.10001940
movzx eax, byte [esp + 0x17]
mov esi, dword [esp + 0x30]
add eax, 0x18
add eax, esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], eax
jmp 0x100015c5
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0xc4], ebx
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 3
jl 0x100015b6
mov byte [esp + 0x17], bl
cmp byte [esp + 0x17], 0
je 0x100015e3
push 0x1787
push ebx
call dword [sym.imp.USER32.dll_GetSubMenu]
mov byte [esp + 0x17], bl
cmp byte [esp + 0x17], 0
je 0x10001617
push 0x1857
push 0x1bf8
push 0xbef
push 0x1888
push 0x62d
push 0x1be9
push 0xfd4
call dword [sym.imp.GDI32.dll_RoundRect]
mov ecx, dword [esi + edi + 0x14]
mov edx, dword [esi + edi]
call fcn.10001180
push 3
lea ecx, [esp + 0x94]
mov esi, eax
call fcn.100018bd
mov dword [esp + 0xc], 0xfffffff8
push 3
mov dword [esp + 0x38], 0x696a485b
mov dword [esp + 0x14], ebx
pop edx
jmp 0x10001662
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x90]
mov dword [eax + ecx*4], 0xfdf99ff6
inc dword [esp + 0x10]
cmp dword [esp + 0x10], edx
jl 0x1000164c
mov dword [esp + 0xc], ebx
jmp 0x10001698
mov dword [esp + 0x10], ebx
jmp 0x10001687
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x9c], 0xeb7161ab
inc dword [esp + 0x10]
cmp dword [esp + 0x10], edx
jl 0x10001674
inc dword [esp + 0x9c]
inc dword [esp + 0xc]
cmp dword [esp + 0xc], 2
jle 0x1000166e
lea ecx, [esp + 0x90]
call fcn.10001940
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov dword [esp + 0xc], 0x32bb
add eax, edi
mov dword [esp + 0x1c], 0xfffffffb
inc ecx
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], 0xf4da
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], ebx
jmp 0x100016ee
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x4c], ecx
inc dword [esp + 0x10]
cmp dword [esp + 0x10], ecx
jl 0x100016e2
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
neg eax
je 0x10001708
mov eax, ecx
cmp dword [esp + 0xc], ebx
jne 0x1000170a
mov eax, ebx
cmp eax, dword [esp + 0xc]
je 0x10001714
mov eax, dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp dword [esp + 0xc], ebx
je 0x10001722
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0xc]
mov eax, dword [esp + 0xc]
mov eax, dword [esp + 0xc]
mov eax, dword [esp + 0xc]
add eax, 0xfff7
neg eax
sbb eax, eax
neg eax
cmp dword [esp + 0xc], eax
jl 0x10001753
mov eax, dword [esp + 0x10]
mov dword [esp + 0x4c], ebx
dec dword [esp + 0x20]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
cmp dword [esp + 0xc], ebx
je 0x100017a8
mov dword [esp + 0xc], ebx
jmp 0x1000179f
mov byte [esp + 0x17], bl
cmp byte [esp + 0x17], 0
je 0x1000179b
push 0x21b0
push 0x5a7
push ebx
call dword [sym.imp.USER32.dll_OffsetRect]
inc dword [esp + 0xc]
cmp dword [esp + 0xc], 0xc
jle 0x1000177f
jmp 0x10001802
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], 0x34678dc2
mov dword [esp + 0xc], ebx
jmp 0x100017da
mov dword [esp + 0x1c], 0x1abe8f21
dec dword [esp + 0x20]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
inc dword [esp + 0xc]
cmp dword [esp + 0xc], 0x18
jle 0x100017ba
mov dword [esp + 0x10], ebx
jmp 0x100017fb
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + eax*4 + 0x50]
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x50], ecx
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 3
jle 0x100017e7
mov eax, dword [ebp + 8]
mov dword [eax], esi
shr esi, 2
mov dword [esp + 0x18], 0xcf5
inc esi
mov byte [esp + 0x17], bl
cmp byte [esp + 0x17], 0
je 0x1000182c
push ebx
push 0xd17
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov byte [esp + 0x17], bl
cmp byte [esp + 0x17], 0
je 0x10001842
push 0xb2d
call dword [sym.imp.GDI32.dll_CloseEnhMetaFile]
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + edi]
mov dword [esp + 0x80], eax
mov eax, dword [ecx + edi + 4]
mov dword [esp + 0x84], eax
mov eax, dword [ecx + edi + 8]
mov dword [esp + 0x88], eax
mov eax, dword [ecx + edi + 0xc]
mov dword [esp + 0x8c], eax
test esi, esi
je 0x100018a8
mov ecx, dword [esp + 0x28]
sub edi, ecx
mov ecx, dword [ecx]
mov edx, ebx
and edx, 3
mov edx, dword [esp + edx*4 + 0x80]
call fcn.10001180
mov ecx, dword [esp + 0x28]
mov dword [edi + ecx], eax
add ecx, 4
inc ebx
mov dword [esp + 0x28], ecx
cmp ebx, esi
jb 0x1000187b
jmp 0x100018a8
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [esp + 0xd4]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret