Function at 0x40d3e3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c0
and dword [ebp - 4], 0
push ebx
push esi
push edi
push 2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll__lopen]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40d44f
push 0xa
xor eax, eax
pop ecx
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
push 0xa
lea edi, [ebp - 0x54]
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll__lread]
rep stosd dword es:[edi], eax
push 4
lea eax, [ebp + 8]
pop edi
push edi
push eax
push ebx
call esi
cmp dword [ebp + 8], 0
je 0x40d456
push dword [ebp + 8]
call fcn.0041b1a2
pop ecx
mov dword [0x42b518], eax
push dword [ebp + 8]
push eax
push ebx
call esi
cmp eax, dword [ebp + 8]
je 0x40d456
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
xor eax, eax
jmp 0x40d95e
lea eax, [ebp + 8]
push edi
push eax
push ebx
call esi
mov eax, dword [ebp + 8]
test eax, eax
je 0x40d482
push eax
mov dword [0x42b520], eax
call fcn.0041b1a2
pop ecx
mov dword [0x42b510], eax
push dword [ebp + 8]
push eax
push ebx
call esi
cmp eax, dword [ebp + 8]
jne 0x40d448
lea eax, [ebp + 8]
push edi
push eax
push ebx
call esi
mov eax, dword [ebp + 8]
test eax, eax
je 0x40d4ae
push eax
mov dword [0x42b524], eax
call fcn.0041b1a2
pop ecx
mov dword [0x42b514], eax
push dword [ebp + 8]
push eax
push ebx
call esi
cmp eax, dword [ebp + 8]
jne 0x40d448
lea eax, [ebp + 8]
push edi
push eax
push ebx
call esi
cmp dword [ebp + 8], 0
je 0x40d4e8
push dword [ebp + 8]
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [0x42b538], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp + 8]
push eax
push ebx
call esi
cmp eax, dword [ebp + 8]
mov dword [0x42b50c], eax
jne 0x40d448
lea eax, [ebp + 8]
push edi
push eax
push ebx
call esi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x40d513
push dword [ebp + 8]
call fcn.0041b1a2
pop ecx
mov dword [ebp - 4], eax
push dword [ebp + 8]
push eax
push ebx
call esi
cmp eax, dword [ebp + 8]
jne 0x40d448
lea eax, [ebp + 8]
push 4
push eax
push ebx
call esi
cmp dword [ebp + 8], 0
je 0x40d53f
push dword [ebp + 8]
call fcn.0041b1a2
pop ecx
mov dword [ebp + edi - 0x54], eax
push dword [ebp + 8]
push eax
push ebx
call esi
cmp eax, dword [ebp + 8]
jne 0x40d448
lea eax, [ebp + 8]
push 4
push eax
push ebx
call esi
cmp dword [ebp + 8], 0
je 0x40d56b
push dword [ebp + 8]
call fcn.0041b1a2
pop ecx
mov dword [ebp + edi - 0x2c], eax
push dword [ebp + 8]
push eax
push ebx
call esi
cmp eax, dword [ebp + 8]
jne 0x40d448
add edi, 4
cmp edi, 0x28
jl 0x40d513
push 0x1110
push 0x42d460
push ebx
call esi
push 0x42d994
push 0x42cc40
call fcn.0041bb30
push 0x42dba8
push 0x42d240
call fcn.0041bb30
add esp, 0x10
lea eax, [ebp + 8]
push 4
push eax
push ebx
call esi
cmp dword [ebp + 8], 0
je 0x40d5e5
push dword [ebp + 8]
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [0x42b544], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp + 8]
mov edi, eax
push edi
push ebx
call esi
cmp eax, dword [ebp + 8]
mov dword [0x42b590], eax
jne 0x40d448
push edi
call fcn.0040989a
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [0x42b518]
push 0x7c
test eax, eax
pop edi
je 0x40d702
mov esi, eax
push edi
push esi
call fcn.0041c440
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
je 0x40d702
sub eax, esi
mov dword [ebp + 8], eax
push eax
lea eax, [ebp - 0x7c0]
push esi
push eax
call fcn.0041bd20
mov eax, dword [ebp + 8]
push 0x3b
and byte [ebp + eax - 0x7c0], 0
lea eax, [ebp - 0x7c0]
push eax
call fcn.0041c440
mov esi, eax
add esp, 0x14
test esi, esi
je 0x40d44f
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.0041bb30
and byte [esi], 0
lea eax, [ebp - 0x158]
push eax
push 0x14
call fcn.0040495c
add esp, 0x10
test eax, eax
jne 0x40d697
lea eax, [ebp - 0x158]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x158]
push str.Fonts
push eax
call fcn.00405453
pop ecx
pop ecx
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x464]
push eax
call fcn.0041bb30
lea eax, [ebp - 0x464]
push 0x5c
push eax
call fcn.0041bb00
add esp, 0x10
test eax, eax
je 0x40d6c2
and byte [eax], 0
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x464]
push eax
call fcn.00423160
pop ecx
test eax, eax
pop ecx
jne 0x40d6fa
cmp dword [0x42e4a0], eax
je 0x40d6fa
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.GDI32.dll_AddFontResourceA]
mov dword [0x42b588], 1
lea esi, [ebx + 1]
jmp 0x40d5fe
mov eax, dword [0x42b510]
test eax, eax
je 0x40d72f
mov ebx, eax
test ebx, ebx
je 0x40d72f
push edi
push ebx
call fcn.0041c440
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x40d72f
and byte [esi], 0
push ebx
call fcn.00407a79
pop ecx
lea ebx, [esi + 1]
jmp 0x40d70d
mov eax, dword [0x42b514]
test eax, eax
je 0x40d75c
mov ebx, eax
test ebx, ebx
je 0x40d75c
push edi
push ebx
call fcn.0041c440
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x40d75c
and byte [esi], 0
push ebx
call fcn.00407ba2
pop ecx
lea ebx, [esi + 1]
jmp 0x40d73a
call fcn.0040b729
cmp dword [0x42e1d8], 0
je 0x40d77e
cmp byte [0x42e0c8], 0
je 0x40d77e
push 0x42e0c8
call fcn.00403c4c
pop ecx
mov esi, dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
je 0x40d84d
xor ebx, ebx
push esi
lea eax, [ebp - 0x158]
push ebx
push eax
call fcn.00403bc9
add esp, 0xc
push esi
call fcn.0040ddfd
test eax, eax
je 0x40d7c6
lea eax, [ebp - 0x158]
push eax
push dword [0x42d990]
push ebx
push ebx
push esi
call fcn.004050d5
add esp, 0x14
jmp 0x40d844
lea eax, [ebp - 0x360]
push eax
push esi
call fcn.0040c60d
pop ecx
test eax, eax
pop ecx
jne 0x40d7f3
lea eax, [ebp - 0x360]
push eax
lea eax, [ebp - 0x158]
push eax
push esi
call dword [sym.imp.SHELL32.dll_FindExecutableA]
cmp eax, 0x20
jbe 0x40d7ac
lea eax, [ebp - 0x360]
push 0x208
push eax
lea eax, [ebp - 0x360]
push eax
call edi
lea eax, [ebp - 0x360]
push 0x42782c
push eax
call fcn.0041bb40
lea eax, [ebp - 0x360]
push esi
push eax
call fcn.0041bb40
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x360]
push dword [0x42d990]
push ebx
push ebx
push eax
call fcn.004050d5
add esp, 0x24
push esi
call fcn.0041b254
pop ecx
jmp 0x40d84f
xor ebx, ebx
xor esi, esi
mov ebx, dword [ebp + esi - 0x54]
test ebx, ebx
je 0x40d936
cmp dword [esi + 0x42e500], 0
jne 0x40d920
push ebx
call fcn.0040ddfd
test eax, eax
je 0x40d898
push dword [ebp + esi - 0x2c]
push dword [esi + 0x42e068]
push dword [esi + 0x42e040]
push dword [esi + 0x42e090]
push ebx
call fcn.004050d5
add esp, 0x14
jmp 0x40d920
lea eax, [ebp - 0x568]
push eax
push ebx
call fcn.0040c60d
pop ecx
test eax, eax
pop ecx
jne 0x40d8c5
lea eax, [ebp - 0x568]
push eax
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_FindExecutableA]
cmp eax, 0x20
jbe 0x40d874
lea eax, [ebp - 0x568]
push 0x208
push eax
lea eax, [ebp - 0x568]
push eax
call edi
lea eax, [ebp - 0x568]
push 0x42782c
push eax
call fcn.0041bb40
lea eax, [ebp - 0x568]
push ebx
push eax
call fcn.0041bb40
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x568]
push dword [esi + 0x42e068]
push dword [esi + 0x42e040]
push dword [esi + 0x42e090]
push eax
call fcn.004050d5
add esp, 0x24
push ebx
call fcn.0041b254
mov eax, dword [ebp + esi - 0x2c]
pop ecx
test eax, eax
je 0x40d936
push eax
call fcn.0041b254
pop ecx
add esi, 4
cmp esi, 0x28
jl 0x40d851
xor eax, eax
cmp dword [0x42b588], eax
je 0x40d95b
push eax
push eax
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret