Function at 0x100a58e
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x24b8
call fcn.01011f20
mov eax, dword [0x101647c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push edi
mov dword [ebp - 0x242c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2428], eax
xor ebx, ebx
xor eax, eax
mov word [ebp - 0x414], bx
mov ecx, 0x81
lea edi, [ebp - 0x412]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0x400
push edi
lea eax, [ebp - 0x2420]
push eax
mov eax, dword [0x101d824]
push 0x27
mov word [ebp - 0x20c], bx
push dword [eax + 0xc]
mov dword [ebp - 0x2424], ebx
call esi
mov eax, dword [0x101d824]
mov eax, dword [eax + 0xc]
push edi
lea ecx, [ebp - 0x1c20]
push ecx
push 0x28
push eax
call esi
lea edi, [ebp + eax*2 - 0x1c20]
mov eax, dword [0x101d824]
mov esi, 0x10027b0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 0xa8]
neg eax
sbb eax, eax
and eax, 0xfffffff4
add eax, 0x58
mov dword [ebp - 0x2484], eax
mov eax, dword [ebp - 0x242c]
mov dword [ebp - 0x2480], eax
lea eax, [ebp - 0x1c20]
mov dword [ebp - 0x2478], eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x2468], eax
xor esi, esi
lea eax, [ebp - 0x2420]
mov dword [ebp - 0x2454], eax
inc esi
mov dword [ebp - 0x247c], ebx
mov dword [ebp - 0x2474], ebx
mov dword [ebp - 0x2470], ebx
mov dword [ebp - 0x246c], esi
mov dword [ebp - 0x2464], 0x104
mov dword [ebp - 0x2460], ebx
mov dword [ebp - 0x245c], ebx
mov dword [ebp - 0x2458], ebx
mov dword [ebp - 0x2450], 0x121804
mov word [ebp - 0x244c], bx
mov word [ebp - 0x244a], bx
mov dword [ebp - 0x2448], ebx
mov dword [ebp - 0x2444], ebx
mov dword [ebp - 0x2440], ebx
mov dword [ebp - 0x243c], ebx
xor eax, eax
lea edi, [ebp - 0x2438]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x100a72d
push ebx
push esi
push 0x100202c
push 0xc
call fcn.0100825f
mov edi, eax
cmp edi, ebx
jne 0x100a71f
push ebx
push esi
push 0x1001fac
push 5
call fcn.0100825f
mov edi, eax
cmp edi, ebx
je 0x100a72d
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x2484]
push eax
call dword [sym.imp.comdlg32.dll_GetOpenFileNameW]
cmp word [ebp - 0x414], bx
mov edi, eax
je 0x100a752
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp edi, ebx
je 0x100a8e6
lea eax, [ebp - 0x20c]
push eax
call fcn.01009fbc
test eax, eax
je 0x100a816
push 0x11
pop ecx
mov esi, 0x1002768
lea edi, [ebp - 0xc14]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
mov ecx, 0x1ee
lea edi, [ebp - 0xbce]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x101d824]
mov eax, dword [eax + 0xc]
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
mov esi, 0x400
push esi
lea ecx, [ebp - 0x1414]
push ecx
push 0x46
push eax
call edi
test eax, eax
jne 0x100a7c8
push esi
push 0x10026d8
lea eax, [ebp - 0x1414]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
mov eax, dword [0x101d824]
mov eax, dword [eax + 0xc]
push esi
lea ecx, [ebp - 0xc14]
push ecx
push 0x19
push eax
call edi
test eax, eax
jne 0x100a7f4
push esi
push 0x1002768
lea eax, [ebp - 0xc14]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
push ebx
lea eax, [ebp - 0xc14]
push eax
lea eax, [ebp - 0x1414]
push eax
push dword [ebp - 0x242c]
call fcn.0100746c
xor esi, esi
inc esi
jmp 0x100a6e1
cmp edi, ebx
je 0x100a8e6
push 0xc
pop ecx
push dword [ebp - 0x2428]
xor eax, eax
mov dword [ebp - 0x24b8], ebx
lea edi, [ebp - 0x24b4]
mov dword [ebp - 0x2424], 0x8007000e
rep stosd dword es:[edi], eax
call fcn.01009c68
mov dword [ebp - 0x24b8], eax
push 8
lea eax, [ebp - 0x20c]
push 0x40
mov dword [ebp - 0x24b4], 0xffff0003
mov dword [ebp - 0x24b0], 5
mov dword [ebp - 0x24a0], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 0x248c], eax
je 0x100a8e6
mov dword [eax], ebx
mov eax, dword [ebp - 0x248c]
push 2
pop edi
mov dword [eax + 4], ebx
push edi
lea eax, [ebp - 0x20c]
push eax
call sub.MIGISM.dll_IsmIsComponentSelected
test eax, eax
jne 0x100a8e0
push esi
push edi
lea eax, [ebp - 0x20c]
push eax
call sub.MIGISM.dll_IsmSelectComponent
test eax, eax
jne 0x100a8c1
push esi
push edi
lea eax, [ebp - 0x20c]
push eax
push edi
push ebx
call sub.MIGISM.dll_IsmAddComponentAlias
lea eax, [ebp - 0x24b8]
push eax
push ebx
push 0x1132
push dword [ebp - 0x2428]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [0x101d85c], esi
mov dword [ebp - 0x2424], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2424]
pop edi
pop esi
pop ebx
call fcn.01011c2a
leave
ret 8