Function at 0x430a38
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 0x430aa1
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.00432310
mov ebx, dword [esp + 0x1c0]
mov ecx, dword [esi + 0x2c]
mov edx, dword [0x55651c]
lea eax, [esp + 0x28]
push eax
push ebp
push ebx
push ecx
push edx
mov ecx, esi
call fcn.004307d0
mov eax, dword [edi]
mov ecx, dword [esi + 0x2c]
push eax
push ecx
call fcn.00517390
add esp, 8
lea ecx, [esp + 0x78]
mov edi, eax
mov eax, dword [0x55651c]
push ecx
push 0x543354
mov edx, dword [eax]
push ebp
push edi
push eax
call dword [edx + 0x14]
test eax, eax
jl 0x430b20
mov eax, dword [esp + 0x78]
lea edx, [esp + 0x28]
push edx
push 1
push ebx
push edi
push eax
mov ecx, esi
call fcn.004307d0
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.005106e0
mov ecx, dword [0x547570]
add esp, 4
cmp eax, ebp
mov dword [esp + 0x4c], eax
mov dword [esp + 0x10], ecx
jne 0x430c1c
lea eax, [esp + 0x18]
push ebx
push eax
mov dword [esp + 0x40], ebp
call fcn.005103f0
mov ecx, dword [esp + 0x18]
mov esi, eax
add esp, 8
mov eax, dword [esi]
cmp ecx, eax
je 0x430bbb
cmp dword [ecx - 0xc], ebp
jge 0x430b8d
mov edx, dword [0x547574]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x430b92
cmp dword [eax - 0xc], ebp
jge 0x430ba2
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00405870
jmp 0x430bbb
lea ecx, [esp + 0x10]
call fcn.004124c0
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 [0x547574]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x430bec
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x430bec
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x430e77
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x430e77
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
jmp 0x430e6f
cmp esi, ebp
jle 0x430e4d
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.00510ac0
mov edi, dword [esp + 0xa8]
push ebx
push edi
push 0
mov esi, eax
call fcn.00511460
add esp, 0x14
cmp al, 1
jne 0x430d06
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x44]
push ebx
push edx
mov dword [esp + 0x40], ecx
call fcn.005103f0
mov ecx, dword [esp + 0x18]
mov esi, eax
add esp, 8
mov eax, dword [esi]
cmp ecx, eax
je 0x430cca
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x430c9a
mov edx, dword [0x547574]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x430ca1
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x430cb1
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x18]
call fcn.00405870
jmp 0x430cca
lea ecx, [esp + 0x10]
call fcn.004124c0
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 [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x430e2b
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x430e2b
mov edx, dword [esp + 0x44]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
jmp 0x430e2b
push esi
push edi
call fcn.00511430
add esp, 8
cmp al, 1
jne 0x430e2b
mov eax, dword [0x547570]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x3c], eax
inc ebp
lea eax, [ecx + 1]
cmp ebp, eax
jge 0x430dfc
mov ebx, dword [esp + 0xa4]
mov edx, dword [esp + 0x1c0]
push ebp
push edx
call fcn.00510c10
mov esi, eax
add esp, 8
test esi, esi
je 0x430dec
push 0x8000
lea eax, [esp + 0x14]
push 0
push eax
push esi
call fcn.005109c0
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.00510ac0
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.00431de0
mov eax, dword [eax]
mov dword [eax + 0x24], ebp
mov edx, dword [esp + 0x4c]
inc ebp
lea eax, [edx + 1]
cmp ebp, eax
jl 0x430d38
mov eax, dword [esp + 0x3c]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x430e24
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x430e24
push esi
call fcn.00532222
add esp, 4
mov ebx, dword [esp + 0x1c0]
lea ecx, [esp + 0x14]
call fcn.004323b0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x430c24
mov ecx, dword [esp + 0x10]
mov eax, dword [0x547574]
lea edx, [ecx - 0xc]
cmp edx, eax
je 0x430e77
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x430e77
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00532222
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 0x430ed8
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.004314e0
mov ecx, dword [esp + 0x98]
test ecx, ecx
je 0x430eca
inc eax
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x14]
call fcn.004323b0
inc ebx
cmp ebx, ebp
jl 0x430e8b
mov ebx, dword [esp + 0x40]
push 0
push 0
mov ecx, ebx
mov eax, dword [ebx + 0x2c]
push eax
call fcn.004314e0
cmp dword [esp + 0x38], 0xffffffff
je 0x4310d1
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x4310d1
mov ecx, dword [0x547570]
mov edx, dword [esp + 0x1c0]
mov dword [esp + 0x10], ecx
push edx
lea ecx, [esp + 0x24]
call fcn.00510710
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
call fcn.00511000
mov edi, eax
mov eax, dword [esp + 0x10]
mov esi, dword [edi]
cmp eax, esi
je 0x430fa6
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x430f4a
mov ecx, dword [0x547574]
add eax, 0xfffffff4
cmp eax, ecx
jne 0x430f51
mov eax, dword [esi - 0xc]
test eax, eax
jge 0x430f8d
mov ebp, dword [esi - 8]
lea ecx, [esp + 0x10]
push ebp
call fcn.00405660
test eax, eax
je 0x430fa6
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 0x430fa6
lea ecx, [esp + 0x10]
call fcn.004124c0
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 [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x430fd5
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x430fd5
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [0x55651c]
test eax, eax
je 0x430ff9
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.00517400
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.005114b0
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.005114b0
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.00510740
mov eax, dword [esp + 0x10]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4310d7
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4310d7
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
jmp 0x4310d7
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 0x4313ae
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 0x431126
add eax, 4
jmp 0x431128
xor eax, eax
mov eax, dword [eax]
push edi
push eax
push 0
call fcn.00511460
add esp, 0xc
test al, al
je 0x431148
mov eax, dword [esp + 0x20]
inc esi
cmp esi, eax
jl 0x43110b
jmp 0x4313ae
mov edx, dword [0x547570]
push edi
lea ecx, [esp + 0x48]
mov dword [esp + 0x14], edx
call fcn.00510710
push edi
lea ecx, [esp + 0x50]
call fcn.00510710
mov eax, dword [ebx + 0x20]
push 0
push esi
push 0x14e
push eax
call ebp
mov eax, dword [0x55651c]
test eax, eax
je 0x431191
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.00517400
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.005103f0
mov edi, eax
mov eax, dword [esp + 0x128]
add esp, 0x118
mov esi, dword [edi]
cmp eax, esi
je 0x431285
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
test edx, edx
mov edx, dword [0x547574]
jge 0x431207
lea ebx, [eax - 0xc]
cmp ebx, edx
jne 0x43120e
mov ebx, dword [esi - 0xc]
test ebx, ebx
jge 0x431249
mov ebx, dword [esi - 8]
lea ecx, [esp + 0x10]
push ebx
call fcn.00405660
test eax, eax
je 0x431285
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 0x431285
add eax, 0xfffffff4
cmp eax, edx
je 0x431275
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x43126b
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00532222
add esp, 4
mov ecx, dword [0x547570]
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 [0x547574]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4312b4
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4312b4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.00532222
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.005114b0
push 1
lea ecx, [esp + 0x48]
mov dword [esp + 0x6c], eax
call fcn.005114b0
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 0x431309
mov ecx, dword [eax - 4]
test ecx, ecx
jge 0x43134b
mov ebx, dword [eax - 8]
test ebx, ebx
jle 0x431316
jne 0x431421
mov eax, dword [0x547570]
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.00405590
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.00510740
lea ecx, [esp + 0x44]
call fcn.00510740
mov eax, dword [esp + 0x10]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4313ae
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4313ae
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00532222
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 0x431454
lea eax, [esp + 0x20]
lea ecx, [esp + 0x28]
push eax
call fcn.00524430
mov ecx, eax
mov eax, dword [esp + 0x18]
cmp eax, dword [ecx]
jne 0x431454
mov ecx, dword [esp + 0x2c]
cmp esi, ecx
jne 0x431454
mov edx, dword [ecx + 4]
lea ecx, [esp + 0x28]
push edx
call fcn.004322d0
mov eax, dword [esp + 0x2c]
mov ecx, dword [0x556520]
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.00524430
jmp 0x43147e
lea ecx, [ebx + ebx + 0xe]
push ecx
call fcn.00532695
add esp, 4
test eax, eax
je 0x43144d
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 0x43131b
xor eax, eax
jmp 0x43134b
cmp eax, esi
je 0x43147e
lea eax, [esp + 0x20]
push edi
push eax
lea ecx, [esp + 0x20]
call fcn.00431d80
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x30]
call fcn.00431ed0
cmp dword [esp + 0x18], esi
jne 0x431458
mov eax, dword [esp + 0x2c]
push eax
call fcn.00532222
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], edi
xor esi, esi
call fcn.0054027f
mov eax, dword [0x556524]
dec eax
mov dword [0x556524], eax
jne 0x4314b7
mov esi, dword [0x556520]
mov dword [0x556520], edi
lea ecx, [esp + 0x20]
call fcn.0054031b
cmp esi, edi
je 0x4314cd
push esi
call fcn.00532222
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1ac
ret 4