Function at 0x429a70
Capabilities:
Get common file path
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1ac
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push ebp
push ebp
push 0x406
push eax
mov dword [esp + 0x50], esi
call edi
push ebp
push 0x12c
push 0x160
push eax
call edi
mov ecx, dword [esi + 0x20]
push ebp
push ebp
push 0x406
push ecx
call edi
push ebp
push ebp
push 0x14b
push eax
call edi
mov eax, dword [esi + 0x28]
lea edi, [esi + 0x28]
cmp eax, ebp
jne 0x429ae1
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea edx, [esi + 0x2c]
push edx
push ebp
push ebp
call ebx
push edi
push 0x11
push ebp
call ebx
lea eax, [esi + 0x30]
push eax
push 0x12
push ebp
call ebx
mov cl, byte [esp + 0x1f]
mov dl, byte [esp + 0x1f]
mov byte [esp + 0x28], cl
lea ecx, [esp + 0x28]
mov byte [esp + 0x29], dl
mov byte [esp + 0x30], 0
call fcn.0042b350
mov ebx, dword [esp + 0x1c0]
mov ecx, dword [esi + 0x2c]
mov edx, dword [0x4e5130]
lea eax, [esp + 0x28]
push eax
push ebp
push ebx
push ecx
push edx
mov ecx, esi
call fcn.00429810
mov eax, dword [edi]
mov ecx, dword [esi + 0x2c]
push eax
push ecx
call fcn.004b3170
add esp, 8
lea ecx, [esp + 0x78]
mov edi, eax
mov eax, dword [0x4e5130]
push ecx
push 0x4d4eb8
mov edx, dword [eax]
push ebp
push edi
push eax
call dword [edx + 0x14]
test eax, eax
jl 0x429b60
mov eax, dword [esp + 0x78]
lea edx, [esp + 0x28]
push edx
push 1
push ebx
push edi
push eax
mov ecx, esi
call fcn.00429810
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x34]
push ebx
mov dword [esp + 0x3c], 0xffffffff
mov edx, dword [ecx]
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ebp
call fcn.004acd90
mov ecx, dword [0x4d9540]
add esp, 4
cmp eax, ebp
mov dword [esp + 0x4c], eax
mov dword [esp + 0x10], ecx
jne 0x429c5c
lea eax, [esp + 0x18]
push ebx
push eax
mov dword [esp + 0x40], ebp
call fcn.004acc20
mov ecx, dword [esp + 0x18]
mov esi, eax
add esp, 8
mov eax, dword [esi]
cmp ecx, eax
je 0x429bfb
cmp dword [ecx - 0xc], ebp
jge 0x429bcd
mov edx, dword [0x4d9544]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x429bd2
cmp dword [eax - 0xc], ebp
jge 0x429be2
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00401630
jmp 0x429bfb
lea ecx, [esp + 0x10]
call fcn.0040e950
mov esi, dword [esi]
mov dword [esp + 0x10], esi
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x18]
mov ecx, dword [0x4d9544]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x429c2c
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x429c2c
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x429eb7
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x429eb7
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
jmp 0x429eaf
cmp esi, ebp
jle 0x429e8d
mov eax, dword [esp + 0x14]
mov ecx, 6
lea edi, [esp + 0x94]
lea esi, [eax + 0xc]
rep movsd dword es:[edi], dword [esi]
mov ebp, dword [esp + 0x94]
push ebp
push ebx
call fcn.004ad170
mov edi, dword [esp + 0xa8]
push ebx
push edi
push 0
mov esi, eax
call fcn.004ad9e0
add esp, 0x14
cmp al, 1
jne 0x429d46
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x44]
push ebx
push edx
mov dword [esp + 0x40], ecx
call fcn.004acc20
mov ecx, dword [esp + 0x18]
mov esi, eax
add esp, 8
mov eax, dword [esi]
cmp ecx, eax
je 0x429d0a
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x429cda
mov edx, dword [0x4d9544]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x429ce1
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x429cf1
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x18]
call fcn.00401630
jmp 0x429d0a
lea ecx, [esp + 0x10]
call fcn.0040e950
mov esi, dword [esi]
mov dword [esp + 0x10], esi
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x44]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x429e6b
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x429e6b
mov edx, dword [esp + 0x44]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
jmp 0x429e6b
push esi
push edi
call fcn.004ad9b0
add esp, 8
cmp al, 1
jne 0x429e6b
mov eax, dword [0x4d9540]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x3c], eax
inc ebp
lea eax, [ecx + 1]
cmp ebp, eax
jge 0x429e3c
mov ebx, dword [esp + 0xa4]
mov edx, dword [esp + 0x1c0]
push ebp
push edx
call fcn.004ad2c0
mov esi, eax
add esp, 8
test esi, esi
je 0x429e2c
push 0x8000
lea eax, [esp + 0x14]
push 0
push eax
push esi
call fcn.004ad070
xor ecx, ecx
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], ecx
push ecx
push esi
mov dword [esp + 0xa8], ecx
call fcn.004ad170
mov edx, dword [ebx]
add esp, 0x18
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], esi
push ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x84], 1
call dword [edx + 4]
mov ecx, 6
lea esi, [esp + 0x7c]
lea edi, [esp + 0x54]
lea eax, [esp + 0x54]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xac]
push eax
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x74], 0
call fcn.0042ae20
mov eax, dword [eax]
mov dword [eax + 0x24], ebp
mov edx, dword [esp + 0x4c]
inc ebp
lea eax, [edx + 1]
cmp ebp, eax
jl 0x429d78
mov eax, dword [esp + 0x3c]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x429e64
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x429e64
push esi
call fcn.004c5432
add esp, 4
mov ebx, dword [esp + 0x1c0]
lea ecx, [esp + 0x14]
call fcn.0042b3f0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x429c64
mov ecx, dword [esp + 0x10]
mov eax, dword [0x4d9544]
lea edx, [ecx - 0xc]
cmp edx, eax
je 0x429eb7
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x429eb7
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.004c5432
add esp, 4
mov ecx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x34]
xor ebx, ebx
mov edx, dword [ecx]
test ebp, ebp
mov dword [esp + 0x14], edx
jle 0x429f18
mov eax, dword [esp + 0x14]
mov ecx, 6
lea edi, [esp + 0x94]
lea esi, [eax + 0xc]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0xa0]
push ecx
mov ecx, dword [esp + 0x44]
push ebx
push edx
call fcn.0042a520
mov ecx, dword [esp + 0x98]
test ecx, ecx
je 0x429f0a
inc eax
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x14]
call fcn.0042b3f0
inc ebx
cmp ebx, ebp
jl 0x429ecb
mov ebx, dword [esp + 0x40]
push 0
push 0
mov ecx, ebx
mov eax, dword [ebx + 0x2c]
push eax
call fcn.0042a520
cmp dword [esp + 0x38], 0xffffffff
je 0x42a111
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x42a111
mov ecx, dword [0x4d9540]
mov edx, dword [esp + 0x1c0]
mov dword [esp + 0x10], ecx
push edx
lea ecx, [esp + 0x24]
call fcn.004acdc0
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
call fcn.004ad580
mov edi, eax
mov eax, dword [esp + 0x10]
mov esi, dword [edi]
cmp eax, esi
je 0x429fe6
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x429f8a
mov ecx, dword [0x4d9544]
add eax, 0xfffffff4
cmp eax, ecx
jne 0x429f91
mov eax, dword [esi - 0xc]
test eax, eax
jge 0x429fcd
mov ebp, dword [esi - 8]
lea ecx, [esp + 0x10]
push ebp
call fcn.00401420
test eax, eax
je 0x429fe6
mov edi, dword [esp + 0x10]
lea eax, [ebp + ebp]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], ebp
mov edx, dword [esp + 0x10]
mov word [eax + edx], 0
jmp 0x429fe6
lea ecx, [esp + 0x10]
call fcn.0040e950
mov edi, dword [edi]
mov dword [esp + 0x10], edi
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x14]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42a015
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42a015
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [0x4e5130]
test eax, eax
je 0x42a039
mov ecx, dword [eax]
lea edx, [esp + 0xb4]
push edx
mov edx, dword [esp + 0x1c4]
push 0x4000
push edx
push eax
call dword [ecx + 0x2c]
lea eax, [esp + 0x10]
push 0
push eax
mov ecx, 0x42
sub esp, 0x108
lea esi, [esp + 0x1c4]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.004a9490
mov ecx, dword [esp + 0x148]
mov edx, dword [ebx + 0x20]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 0x110
push 0
push ecx
push 0x150
push edx
call ebp
mov esi, eax
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x54]
rep stosd dword es:[edi], eax
push 1
lea ecx, [esp + 0x24]
mov dword [esp + 0x58], 0x27
mov dword [esp + 0x5c], 0xffffffff
call fcn.004ada30
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x10]
push 3
lea ecx, [esp + 0x24]
mov dword [esp + 0x60], eax
mov dword [esp + 0x78], esi
call fcn.004ada30
mov edx, dword [ebx + 0x20]
lea ecx, [esp + 0x54]
push ecx
push 0
push 0x40c
push edx
mov dword [esp + 0x78], eax
call ebp
lea ecx, [esp + 0x20]
call fcn.004acdf0
mov eax, dword [esp + 0x10]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42a117
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42a117
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
jmp 0x42a117
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebx + 0x20]
push 0
push 0
push 0x406
push eax
call ebp
push 0
push 0
push 0x146
push eax
call ebp
xor esi, esi
mov dword [esp + 0x20], eax
test eax, eax
jle 0x42a3ee
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x1c0]
mov ecx, dword [ebx + 0x20]
push 0
push esi
push 0x150
push ecx
call ebp
test eax, eax
mov dword [esp + 0x3c], eax
je 0x42a166
add eax, 4
jmp 0x42a168
xor eax, eax
mov eax, dword [eax]
push edi
push eax
push 0
call fcn.004ad9e0
add esp, 0xc
test al, al
je 0x42a188
mov eax, dword [esp + 0x20]
inc esi
cmp esi, eax
jl 0x42a14b
jmp 0x42a3ee
mov edx, dword [0x4d9540]
push edi
lea ecx, [esp + 0x48]
mov dword [esp + 0x14], edx
call fcn.004acdc0
push edi
lea ecx, [esp + 0x50]
call fcn.004acdc0
mov eax, dword [ebx + 0x20]
push 0
push esi
push 0x14e
push eax
call ebp
mov eax, dword [0x4e5130]
test eax, eax
je 0x42a1d1
mov ecx, dword [eax]
lea edx, [esp + 0xb4]
push edx
push 0x8000
push edi
push eax
call dword [ecx + 0x2c]
lea eax, [esp + 0x10]
push 0
push eax
mov ecx, 0x42
sub esp, 0x108
lea esi, [esp + 0x1c4]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.004a9490
lea eax, [esp + 0x15c]
lea ecx, [esp + 0x160]
neg eax
sbb eax, eax
lea edx, [esp + 0x124]
and eax, ecx
mov eax, dword [eax]
push eax
push edx
call fcn.004acc20
mov edi, eax
mov eax, dword [esp + 0x128]
add esp, 0x118
mov esi, dword [edi]
cmp eax, esi
je 0x42a2c5
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
test edx, edx
mov edx, dword [0x4d9544]
jge 0x42a247
lea ebx, [eax - 0xc]
cmp ebx, edx
jne 0x42a24e
mov ebx, dword [esi - 0xc]
test ebx, ebx
jge 0x42a289
mov ebx, dword [esi - 8]
lea ecx, [esp + 0x10]
push ebx
call fcn.00401420
test eax, eax
je 0x42a2c5
mov edi, dword [esp + 0x10]
lea eax, [ebx + ebx]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], ebx
mov edx, dword [esp + 0x10]
mov word [eax + edx], 0
jmp 0x42a2c5
add eax, 0xfffffff4
cmp eax, edx
je 0x42a2b5
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42a2ab
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.004c5432
add esp, 4
mov ecx, dword [0x4d9540]
mov dword [esp + 0x10], ecx
mov edi, dword [edi]
mov dword [esp + 0x10], edi
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x14]
mov ecx, dword [0x4d9544]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x42a2f4
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42a2f4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.004c5432
add esp, 4
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x54]
push 3
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x58], 0x27
mov dword [esp + 0x5c], 0xffffffff
call fcn.004ada30
push 1
lea ecx, [esp + 0x48]
mov dword [esp + 0x6c], eax
call fcn.004ada30
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x10]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
cmp edx, 1
mov dword [esp + 0x20], ecx
jg 0x42a349
mov ecx, dword [eax - 4]
test ecx, ecx
jge 0x42a38b
mov ebx, dword [eax - 8]
test ebx, ebx
jle 0x42a356
jne 0x42a461
mov eax, dword [0x4d9540]
mov edx, dword [esp + 0x20]
lea ecx, [ebx + ebx + 2]
mov dword [esp + 0x10], eax
mov edi, eax
mov eax, ecx
lea esi, [edx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov dword [ecx - 8], ebx
call fcn.00401350
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x54]
mov dword [esp + 0x74], edx
mov edx, dword [ecx + 0x20]
push eax
push 0
push 0x40c
push edx
call ebp
lea ecx, [esp + 0x4c]
call fcn.004acdf0
lea ecx, [esp + 0x44]
call fcn.004acdf0
mov eax, dword [esp + 0x10]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42a3ee
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42a3ee
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
xor edi, edi
mov eax, dword [esi]
cmp ecx, edi
mov dword [esp + 0x18], eax
je 0x42a494
lea eax, [esp + 0x20]
lea ecx, [esp + 0x28]
push eax
call fcn.0047a820
mov ecx, eax
mov eax, dword [esp + 0x18]
cmp eax, dword [ecx]
jne 0x42a494
mov ecx, dword [esp + 0x2c]
cmp esi, ecx
jne 0x42a494
mov edx, dword [ecx + 4]
lea ecx, [esp + 0x28]
push edx
call fcn.0042b310
mov eax, dword [esp + 0x2c]
mov ecx, dword [0x4e5134]
lea edx, [esp + 0x3c]
mov dword [eax + 4], ecx
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x34], edi
push edx
mov dword [eax], eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x2c]
mov dword [eax + 8], eax
call fcn.0047a820
jmp 0x42a4be
lea ecx, [ebx + ebx + 0xe]
push ecx
call fcn.004c58a5
add esp, 4
test eax, eax
je 0x42a48d
mov dword [eax], 1
mov word [eax + ebx*2 + 0xc], 0
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
add eax, 0xc
jmp 0x42a35b
xor eax, eax
jmp 0x42a38b
cmp eax, esi
je 0x42a4be
lea eax, [esp + 0x20]
push edi
push eax
lea ecx, [esp + 0x20]
call fcn.0042adc0
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x30]
call fcn.0042af10
cmp dword [esp + 0x18], esi
jne 0x42a498
mov eax, dword [esp + 0x2c]
push eax
call fcn.004c5432
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], edi
xor esi, esi
call fcn.004d2a1f
mov eax, dword [0x4e5138]
dec eax
mov dword [0x4e5138], eax
jne 0x42a4f7
mov esi, dword [0x4e5134]
mov dword [0x4e5134], edi
lea ecx, [esp + 0x20]
call fcn.004d2abb
cmp esi, edi
je 0x42a50d
push esi
call fcn.004c5432
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1ac
ret 4