Function at 0x4a1d40
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x14c
mov eax, dword [esp + 0x160]
lea ebx, [esp + 0x3a]
mov dword [eax], 0xffffffff
mov eax, dword [esp + 0x164]
mov dword [eax], 0
mov dword [esp + 4], ebx
mov dword [esp], 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
push edx
push edx
je 0x4a20a3
cmp eax, 0x105
jg 0x4a20a3
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
test eax, eax
je 0x4a1dbf
cmp byte [esp + eax + 0x39], 0x5c
jne 0x4a1dbf
lea eax, [ebx + eax - 2]
lea edx, [esp + 0x39]
jmp 0x4a1db7
dec eax
cmp byte [eax + 1], 0x5c
jne 0x4a1dbf
mov byte [eax + 1], 0
cmp eax, edx
jne 0x4a1db0
mov dword [esp + 8], 0
mov dword [esp + 4], str.gpgme_XXXXXX
mov dword [esp], ebx
call fcn.004aa250
mov ebp, eax
test eax, eax
je 0x4a20e3
mov eax, dword [sym.imp.msvcrt.dll__errno]
mov dword [esp + 0x1c], eax
call eax
mov eax, dword [eax]
mov dword [esp], ebp
mov dword [esp + 0x28], eax
call sub.msvcrt.dll_strlen
cmp eax, 5
jbe 0x4a20c8
lea ebx, [ebp + eax - 6]
mov edi, str.XXXXXX
mov ecx, 7
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
setb al
seta dl
sub edx, eax
movsx eax, dl
mov dword [esp + 0x24], eax
test eax, eax
jne 0x4a20c8
lea eax, [esp + 0x30]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push eax
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], edx
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [esp + 0x20]
xor ecx, eax
mov edi, dword [esp + 0x2c]
mov esi, ecx
mov dword [esp + 0x20], 0x3a2f8
add esi, dword [0x7b59a8]
adc edi, dword [0x7b59ac]
mov dword [0x7b59a8], esi
mov dword [0x7b59ac], edi
jmp 0x4a1eba
mov eax, dword [esp + 0x1c]
call eax
cmp dword [eax], 0x11
jne 0x4a2084
mov esi, dword [0x7b59a8]
mov edi, dword [0x7b59ac]
add esi, 0x1e61
adc edi, 0
dec dword [esp + 0x20]
mov dword [0x7b59a8], esi
mov dword [0x7b59ac], edi
je 0x4a2078
mov dword [esp + 8], 0x3e
mov dword [esp + 0xc], 0
mov dword [esp], esi
mov dword [esp + 4], edi
call fcn.006b7b20
mov al, byte [eax + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [ebx], al
mov dword [esp + 8], 0x3e
mov dword [esp + 0xc], 0
mov dword [esp], esi
mov dword [esp + 4], edi
call fcn.006b7a10
mov dword [esp + 8], 0x3e
mov dword [esp + 0xc], 0
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.006b7b20
mov al, byte [eax + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [ebx + 1], al
mov dword [esp + 8], 0xf04
mov dword [esp + 0xc], 0
mov dword [esp], esi
mov dword [esp + 4], edi
call fcn.006b7a10
mov dword [esp + 8], 0x3e
mov dword [esp + 0xc], 0
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.006b7b20
mov al, byte [eax + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [ebx + 2], al
mov dword [esp + 8], 0x3a2f8
mov dword [esp + 0xc], 0
mov dword [esp], esi
mov dword [esp + 4], edi
call fcn.006b7a10
mov dword [esp + 8], 0x3e
mov dword [esp + 0xc], 0
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.006b7b20
mov al, byte [eax + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [ebx + 3], al
mov dword [esp + 8], 0xe17810
mov dword [esp + 0xc], 0
mov dword [esp], esi
mov dword [esp + 4], edi
call fcn.006b7a10
mov dword [esp + 8], 0x3e
mov dword [esp + 0xc], 0
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.006b7b20
mov al, byte [eax + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [ebx + 4], al
mov dword [esp + 8], 0x369b13e0
mov dword [esp + 0xc], 0
mov dword [esp], esi
mov dword [esp + 4], edi
call fcn.006b7a10
mov dword [esp + 8], 0x3e
mov dword [esp + 0xc], 0
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.006b7b20
mov al, byte [eax + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [ebx + 5], al
mov dword [esp + 8], 0x180
mov dword [esp + 4], 0x502
mov dword [esp], ebp
call sub.msvcrt.dll__open
test eax, eax
js 0x4a1e80
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.004b7200
mov ecx, dword [esp + 0x160]
mov eax, dword [esp + 0x1c]
mov dword [ecx], eax
mov eax, dword [esp + 0x164]
mov dword [eax], ebp
mov eax, dword [esp + 0x24]
add esp, 0x14c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x11
call fcn.004b7200
mov eax, dword [esp + 0x160]
mov dword [eax], 0xffffffff
mov dword [esp], ebp
call sub.msvcrt.dll_free
mov dword [esp + 0x24], 0xffffffff
jmp 0x4a2069
mov dword [esp + 0x3a], 0x775c3a63
mov dword [esp + 0x3e], 0x6f646e69
mov dword [esp + 0x42], 0x745c7377
mov dword [esp + 0x46], 0x706d65
jmp 0x4a1dbf
mov dword [esp], 0x16
call fcn.004b7200
mov eax, dword [esp + 0x160]
mov dword [eax], 0xffffffff
jmp 0x4a2091
mov dword [esp + 0x24], 0xffffffff
jmp 0x4a2069