Function at 0x42d480
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5a2701
mov eax, dword fs:[0]
push eax
sub esp, 0x624
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x620], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x638]
mov dword fs:[0], eax
mov eax, dword [0x5fff60]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x1009
push eax
call ebp
cmp dword [0x5fdb8c], 0
je 0x42d6b0
push 0x104
lea ecx, [esp + 0x430]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x430]
call fcn.00404460
push 1
push 0x5bd0e8
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x64c], 0
call fcn.00403fc0
push 0x1fe
lea ecx, [esp + 0x230]
push 0
push ecx
call fcn.00580260
add esp, 0xc
push 0x1fe
lea edx, [esp + 0x30]
push 0
push edx
call fcn.00580260
mov ecx, dword [0x5fdb8c]
add esp, 0xc
push 0xff
lea eax, [esp + 0x230]
push eax
push ecx
call sub.IMM32.dll_ImmGetDescriptionW
mov eax, dword [0x5fdb8c]
push 0xff
lea edx, [esp + 0x30]
push edx
push eax
call sub.IMM32.dll_ImmGetIMEFileNameW
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x30]
call fcn.00404460
push eax
lea edx, [esp + 0x2c]
push edx
lea ebx, [esp + 0x28]
mov byte [esp + 0x648], 1
call fcn.00423280
add esp, 8
mov byte [esp + 0x640], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d5c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea edi, [esp + 0x28]
call fcn.00431730
mov edx, dword [esp + 0x28]
push 1
lea ecx, [esp + 0x20]
push ecx
xor ebx, ebx
push ebx
push ebx
push edx
mov dword [esp + 0x30], ebx
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x42d603
push 0x7f00
push ebx
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [esp + 0x1c], eax
push eax
mov eax, dword [0x5fff64]
push 0xffffffffffffffff
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov ecx, dword [0x5fff60]
push ebx
push ebx
push 0x1004
push ecx
mov esi, eax
call ebp
push esi
lea edx, [esp + 0x230]
push edx
push 0x5fff60
mov edx, eax
mov ecx, 3
call fcn.0040a460
push 0x2000
push eax
push 0x5fff60
mov ecx, 0xf000
call fcn.0041dea0
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov byte [esp + 0x640], bl
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d685
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x640], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d6b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x5fff6c]
mov esi, dword [ecx]
mov edi, 0x5fff68
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], edi
test edi, edi
mov ebx, dword [0x5fff6c]
je 0x42d6d7
cmp edi, 0x5fff68
je 0x42d6dc
call fcn.00578ff3
cmp esi, ebx
je 0x42d7d8
test edi, edi
jne 0x42d6ed
call fcn.00578ff3
cmp esi, dword [edi + 4]
jne 0x42d6f7
call fcn.00578ff3
mov edx, dword [0x5fdb8c]
cmp dword [esi + 0x54], edx
je 0x42d7c2
mov dword [esp + 0x18], 0
cmp esi, dword [edi + 4]
jne 0x42d718
call fcn.00578ff3
mov ecx, dword [esi + 0xc]
push 1
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push ecx
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x42d745
push 0x7f00
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [esp + 0x18], eax
mov edx, dword [0x5fff64]
push eax
push 0xffffffffffffffff
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
cmp esi, dword [edi + 4]
mov ebp, eax
jne 0x42d761
call fcn.00578ff3
mov eax, dword [0x5fff60]
mov ebx, dword [esi + 0x4c]
push 0
push 0
push 0x1004
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push ebp
push ebx
push 0x5fff60
mov edx, eax
mov ecx, 3
call fcn.0040a460
cmp esi, dword [edi + 4]
mov ebx, eax
jne 0x42d798
call fcn.00578ff3
xor ecx, ecx
cmp dword [esi + 0x5c], ecx
setne cl
add ecx, 1
shl ecx, 0xc
push ecx
push ebx
push 0x5fff60
mov ecx, 0xf000
call fcn.0041dea0
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.USER32.dll_DestroyIcon]
lea esi, [esp + 0x20]
call fcn.00433210
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
jmp 0x42d6c5
mov eax, 1
mov ecx, dword [esp + 0x638]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.005787fd
add esp, 0x630
ret