Function at 0x43dca0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x35c
mov eax, dword [0x48aff4]
push ebx
push esi
mov dword [esp + 0x360], eax
push edi
lea eax, [esp + 0x1c]
xor ebx, ebx
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x43df85
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jl 0x43df7b
mov esi, dword [ebp + 8]
mov edx, dword [esi]
cmp dword [edx - 0xc], ebx
jne 0x43dd15
lea eax, [esp + 0x50]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x50]
push ecx
mov ecx, esi
call fcn.00402190
xor eax, eax
mov ecx, 0x82
lea edi, [esp + 0x158]
rep stosd dword es:[edi], eax
mov ecx, dword [esi]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov eax, dword [ecx - 0xc]
mov edi, dword [ecx - 4]
mov ecx, dword [ecx - 8]
inc eax
mov edx, 1
sub edx, edi
sub ecx, eax
or edx, ecx
jge 0x43dd52
push eax
mov ecx, esi
call fcn.00401260
mov eax, dword [esi]
push 0x104
lea edx, [esp + 0x15c]
push edx
push 0xffffffffffffffff
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [esi]
cmp ecx, ebx
jne 0x43dd77
xor eax, eax
jmp 0x43dd8f
mov eax, ecx
lea edi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x43dd80
sub eax, edi
js 0x43df9e
cmp eax, dword [ecx - 8]
jg 0x43df9e
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
mov byte [eax + ecx], bl
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x164]
push ecx
push ebx
push ebx
push eax
call dword [edx + 0xc]
cmp eax, ebx
jge 0x43de8b
lea edx, [esp + 0x50]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0x50]
push eax
mov ecx, esi
call fcn.00402190
xor eax, eax
mov ecx, 0x82
lea edi, [esp + 0x158]
rep stosd dword es:[edi], eax
mov ecx, dword [esi]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov eax, dword [ecx - 0xc]
inc eax
push eax
mov ecx, esi
call fcn.004012d0
push 0x104
lea edx, [esp + 0x15c]
push edx
push 0xffffffffffffffff
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi]
cmp eax, ebx
jne 0x43de34
xor ecx, ecx
jmp 0x43de4f
mov ecx, eax
lea edi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x43de40
sub ecx, edi
js 0x43df9e
cmp ecx, dword [eax - 8]
jg 0x43df9e
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x28]
push edx
mov dword [eax - 0xc], ecx
mov eax, dword [esi]
lea edx, [esp + 0x164]
push edx
push ebx
mov byte [ecx + eax], bl
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jl 0x43df6d
mov edx, dword [ebp + 0xc]
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], 0x4398c0
mov dword [esp + 0x4c], eax
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
mov edi, eax
cmp edi, ebx
je 0x43df5e
lea edx, [esp + 0x50]
push edx
push edi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x43df53
lea eax, [esp + 0x50]
push eax
mov ecx, esi
mov dword [esp + 0x2c], 1
call fcn.00402190
push 1
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call fcn.00422ad0
push 0x478278
push eax
call fcn.0043a280
add esp, 8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x13], al
call fcn.00401240
cmp byte [esp + 0x13], bl
je 0x43df53
push 0x478278
mov ecx, esi
call fcn.0042f7a0
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
push edi
push eax
call dword [edx + 0x14]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [esp + 0x364]
mov eax, dword [esp + 0x28]
call fcn.00455418
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.00401060
int3