Function at 0x51c159
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c4
push ebx
push esi
push edi
mov dword [ebp - 0x134], 0xffffffff
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x128], 0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
push 4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 0x114], eax
push 0x7531
mov eax, dword [ebp + 8]
push eax
call fcn.0047c6a0
add esp, 8
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.004b4972
add esp, 8
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x51c1db
mov eax, dword [ebp - 0x11c]
jmp 0x51c4da
lea eax, [ebp - 0x23c]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x110]
push eax
push 0
push str.OPWTMP
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x12c]
push eax
call fcn.0049bc3a
add esp, 4
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x51c264
mov eax, dword [ebp - 0x12c]
push eax
call fcn.0049c325
add esp, 4
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x11c]
jmp 0x51c4da
push 0
push 0xffffffffffffffff
push 0
push 1
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00468ec0
add esp, 0x18
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x51c29d
mov eax, dword [ebp - 0x11c]
jmp 0x51c4da
mov eax, dword [ebp - 0x12c]
push eax
call fcn.0049c325
add esp, 4
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.004e483d
add esp, 0xc
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x134]
push eax
call fcn.004e3c2e
add esp, 4
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x51c2fe
jmp 0x51c49a
lea eax, [ebp - 0x118]
push eax
mov eax, dword [ebp - 0x134]
push eax
call fcn.004e436b
add esp, 8
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x51c32c
jmp 0x51c49a
mov eax, dword [ebp - 0x118]
add eax, 4
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x51c360
mov dword [ebp - 0x11c], 0x2714
jmp 0x51c49a
mov eax, dword [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp - 0x120]
mov dword [ecx], eax
add dword [ebp - 4], 4
push 0
push 0
mov eax, dword [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll__llseek]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x51c3b3
mov dword [ebp - 0x11c], 0xffffffff
cmp dword [ebp - 0x11c], 0
jne 0x51c45e
cmp dword [ebp - 0x118], 0
jbe 0x51c45e
cmp dword [ebp - 0x118], 0xfffe
jbe 0x51c3ec
mov dword [ebp - 0x130], 0xfffe
jmp 0x51c3f8
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x130]
push eax
mov eax, dword [ebp - 0x128]
add eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll__lread]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0xffffffff
jne 0x51c433
jmp 0x51c45e
mov dword [ebp - 0x11c], 0
xor eax, eax
sub eax, dword [ebp - 0x130]
neg eax
sub dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x130]
add dword [ebp - 0x128], eax
jmp 0x51c3c0
mov eax, dword [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 0x11c], 0
je 0x51c48f
mov eax, dword [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x124], 0
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp dword [ebp - 0x134], 0
jl 0x51c4b4
mov eax, dword [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
push 0x200
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.004e483d
add esp, 0xc
mov eax, dword [ebp - 0x11c]
jmp 0x51c4da
pop edi
pop esi
pop ebx
leave
ret