Function at 0x403e80
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x452040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x10c]
mov ebx, ecx
push eax
push 0x17
push 0
mov dword [ebp - 0x114], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x403efe
push 0x459be8
push dword [ebp - 0x10c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x403efe
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x403ef7
mov eax, dword [ebp - 0x110]
push dword [ebp - 0x10c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x110]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, 0x459be8
jmp 0x403f00
xor ecx, ecx
mov edx, 0x459008
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x403f07
mov ecx, 0x459008
lea edi, [ecx - 1]
nop dword [eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x403f20
mov ax, word [0x448c04]
mov edx, ebx
mov word [edi], ax
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x403f37
sub edx, esi
dec ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x403f41
mov edi, ecx
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x459008
call fcn.004292dd
add esp, 4
test eax, eax
jns 0x403fa7
call fcn.00427a08
cmp dword [eax], 0x11
je 0x403fa7
push 0x10
push str.ERROR:
push str.Could_not_create_program_group_
push dword [0x4580e8]
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
mov dword [0x4580f4], 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f127
mov esp, ebp
pop ebp
ret
cmp dword [0x4580ec], 0
jne 0x404066
cmp dword [0x45818c], 0
jne 0x403fe9
push 0
push 0x10
push 0x409d90
push 0x458190
mov dword [0x4580fc], 0x409d90
call dword [sym.imp.USER32.dll_DdeInitializeA]
test eax, eax
jne 0x404059
mov dword [0x45818c], 1
mov esi, dword [sym.imp.USER32.dll_DdeCreateStringHandleA]
push 0x3ec
push str.PROGMAN
push dword [0x458190]
call esi
push 0x3ec
push str.PROGMAN
push dword [0x458190]
mov ebx, eax
call esi
push 0
mov edi, eax
push edi
push ebx
push dword [0x458190]
call dword [sym.imp.USER32.dll_DdeConnect]
mov esi, dword [sym.imp.USER32.dll_DdeFreeStringHandle]
push ebx
push dword [0x458190]
mov dword [0x458104], eax
call esi
push edi
push dword [0x458190]
call esi
cmp dword [0x458104], 0
je 0x404059
mov dword [0x4580ec], 1
jmp 0x404066
cmp dword [0x4580ec], 0
je 0x4040fd
push dword [ebp - 0x114]
lea eax, [ebp - 0x108]
push str._ShowGroup__s__6__
push eax
call fcn.004015f0
lea ecx, [ebp - 0x108]
add esp, 0xc
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404090
push 0
push 0x1388
push 0x4050
push 1
sub ecx, edx
push 0
push dword [0x458104]
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_DdeClientTransaction]
cmp dword [0x4580ec], 0
je 0x4040fd
push dword [0x458190]
call dword [sym.imp.USER32.dll_DdeUninitialize]
mov dword [0x458190], 0
mov dword [0x458104], 0
mov dword [0x45818c], 0
mov dword [0x4580ec], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041f127
mov esp, ebp
pop ebp
ret