Function at 0x430988
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 0x4309f1
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.00432260
mov ebx, dword [esp + 0x1c0]
mov ecx, dword [esi + 0x2c]
mov edx, dword [0x5554a4]
lea eax, [esp + 0x28]
push eax
push ebp
push ebx
push ecx
push edx
mov ecx, esi
call fcn.00430720
mov eax, dword [edi]
mov ecx, dword [esi + 0x2c]
push eax
push ecx
call fcn.0050abc0
add esp, 8
lea ecx, [esp + 0x78]
mov edi, eax
mov eax, dword [0x5554a4]
push ecx
push 0x542354
mov edx, dword [eax]
push ebp
push edi
push eax
call dword [edx + 0x14]
test eax, eax
jl 0x430a70
mov eax, dword [esp + 0x78]
lea edx, [esp + 0x28]
push edx
push 1
push ebx
push edi
push eax
mov ecx, esi
call fcn.00430720
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.0050fde0
mov ecx, dword [0x546560]
add esp, 4
cmp eax, ebp
mov dword [esp + 0x4c], eax
mov dword [esp + 0x10], ecx
jne 0x430b6c
lea eax, [esp + 0x18]
push ebx
push eax
mov dword [esp + 0x40], ebp
call fcn.0050faf0
mov ecx, dword [esp + 0x18]
mov esi, eax
add esp, 8
mov eax, dword [esi]
cmp ecx, eax
je 0x430b0b
cmp dword [ecx - 0xc], ebp
jge 0x430add
mov edx, dword [0x546564]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x430ae2
cmp dword [eax - 0xc], ebp
jge 0x430af2
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00405870
jmp 0x430b0b
lea ecx, [esp + 0x10]
call fcn.00412670
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 [0x546564]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x430b3c
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x430b3c
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x430dc7
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x430dc7
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
jmp 0x430dbf
cmp esi, ebp
jle 0x430d9d
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.005101c0
mov edi, dword [esp + 0xa8]
push ebx
push edi
push 0
mov esi, eax
call fcn.00510b60
add esp, 0x14
cmp al, 1
jne 0x430c56
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x44]
push ebx
push edx
mov dword [esp + 0x40], ecx
call fcn.0050faf0
mov ecx, dword [esp + 0x18]
mov esi, eax
add esp, 8
mov eax, dword [esi]
cmp ecx, eax
je 0x430c1a
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x430bea
mov edx, dword [0x546564]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x430bf1
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x430c01
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x18]
call fcn.00405870
jmp 0x430c1a
lea ecx, [esp + 0x10]
call fcn.00412670
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 [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x430d7b
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x430d7b
mov edx, dword [esp + 0x44]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
jmp 0x430d7b
push esi
push edi
call fcn.00510b30
add esp, 8
cmp al, 1
jne 0x430d7b
mov eax, dword [0x546560]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x3c], eax
inc ebp
lea eax, [ecx + 1]
cmp ebp, eax
jge 0x430d4c
mov ebx, dword [esp + 0xa4]
mov edx, dword [esp + 0x1c0]
push ebp
push edx
call fcn.00510310
mov esi, eax
add esp, 8
test esi, esi
je 0x430d3c
push 0x8000
lea eax, [esp + 0x14]
push 0
push eax
push esi
call fcn.005100c0
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.005101c0
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.00431d30
mov eax, dword [eax]
mov dword [eax + 0x24], ebp
mov edx, dword [esp + 0x4c]
inc ebp
lea eax, [edx + 1]
cmp ebp, eax
jl 0x430c88
mov eax, dword [esp + 0x3c]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x430d74
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x430d74
push esi
call fcn.00531732
add esp, 4
mov ebx, dword [esp + 0x1c0]
lea ecx, [esp + 0x14]
call fcn.00432300
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x430b74
mov ecx, dword [esp + 0x10]
mov eax, dword [0x546564]
lea edx, [ecx - 0xc]
cmp edx, eax
je 0x430dc7
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x430dc7
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00531732
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 0x430e28
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.00431430
mov ecx, dword [esp + 0x98]
test ecx, ecx
je 0x430e1a
inc eax
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x14]
call fcn.00432300
inc ebx
cmp ebx, ebp
jl 0x430ddb
mov ebx, dword [esp + 0x40]
push 0
push 0
mov ecx, ebx
mov eax, dword [ebx + 0x2c]
push eax
call fcn.00431430
cmp dword [esp + 0x38], 0xffffffff
je 0x431021
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x431021
mov ecx, dword [0x546560]
mov edx, dword [esp + 0x1c0]
mov dword [esp + 0x10], ecx
push edx
lea ecx, [esp + 0x24]
call fcn.0050fe10
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
call fcn.00510700
mov edi, eax
mov eax, dword [esp + 0x10]
mov esi, dword [edi]
cmp eax, esi
je 0x430ef6
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x430e9a
mov ecx, dword [0x546564]
add eax, 0xfffffff4
cmp eax, ecx
jne 0x430ea1
mov eax, dword [esi - 0xc]
test eax, eax
jge 0x430edd
mov ebp, dword [esi - 8]
lea ecx, [esp + 0x10]
push ebp
call fcn.00405660
test eax, eax
je 0x430ef6
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 0x430ef6
lea ecx, [esp + 0x10]
call fcn.00412670
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 [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x430f25
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x430f25
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [0x5554a4]
test eax, eax
je 0x430f49
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.0050c1d0
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.00510bb0
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.00510bb0
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.0050fe40
mov eax, dword [esp + 0x10]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x431027
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x431027
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
jmp 0x431027
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 0x4312fe
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 0x431076
add eax, 4
jmp 0x431078
xor eax, eax
mov eax, dword [eax]
push edi
push eax
push 0
call fcn.00510b60
add esp, 0xc
test al, al
je 0x431098
mov eax, dword [esp + 0x20]
inc esi
cmp esi, eax
jl 0x43105b
jmp 0x4312fe
mov edx, dword [0x546560]
push edi
lea ecx, [esp + 0x48]
mov dword [esp + 0x14], edx
call fcn.0050fe10
push edi
lea ecx, [esp + 0x50]
call fcn.0050fe10
mov eax, dword [ebx + 0x20]
push 0
push esi
push 0x14e
push eax
call ebp
mov eax, dword [0x5554a4]
test eax, eax
je 0x4310e1
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.0050c1d0
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.0050faf0
mov edi, eax
mov eax, dword [esp + 0x128]
add esp, 0x118
mov esi, dword [edi]
cmp eax, esi
je 0x4311d5
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
test edx, edx
mov edx, dword [0x546564]
jge 0x431157
lea ebx, [eax - 0xc]
cmp ebx, edx
jne 0x43115e
mov ebx, dword [esi - 0xc]
test ebx, ebx
jge 0x431199
mov ebx, dword [esi - 8]
lea ecx, [esp + 0x10]
push ebx
call fcn.00405660
test eax, eax
je 0x4311d5
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 0x4311d5
add eax, 0xfffffff4
cmp eax, edx
je 0x4311c5
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4311bb
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
mov ecx, dword [0x546560]
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 [0x546564]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x431204
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x431204
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.00531732
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.00510bb0
push 1
lea ecx, [esp + 0x48]
mov dword [esp + 0x6c], eax
call fcn.00510bb0
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 0x431259
mov ecx, dword [eax - 4]
test ecx, ecx
jge 0x43129b
mov ebx, dword [eax - 8]
test ebx, ebx
jle 0x431266
jne 0x431371
mov eax, dword [0x546560]
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.0050fe40
lea ecx, [esp + 0x44]
call fcn.0050fe40
mov eax, dword [esp + 0x10]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4312fe
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4312fe
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00531732
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 0x4313a4
lea eax, [esp + 0x20]
lea ecx, [esp + 0x28]
push eax
call fcn.0043d590
mov ecx, eax
mov eax, dword [esp + 0x18]
cmp eax, dword [ecx]
jne 0x4313a4
mov ecx, dword [esp + 0x2c]
cmp esi, ecx
jne 0x4313a4
mov edx, dword [ecx + 4]
lea ecx, [esp + 0x28]
push edx
call fcn.00432220
mov eax, dword [esp + 0x2c]
mov ecx, dword [0x5554a8]
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.0043d590
jmp 0x4313ce
lea ecx, [ebx + ebx + 0xe]
push ecx
call fcn.00531ba5
add esp, 4
test eax, eax
je 0x43139d
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 0x43126b
xor eax, eax
jmp 0x43129b
cmp eax, esi
je 0x4313ce
lea eax, [esp + 0x20]
push edi
push eax
lea ecx, [esp + 0x20]
call fcn.00431cd0
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x30]
call fcn.00431e20
cmp dword [esp + 0x18], esi
jne 0x4313a8
mov eax, dword [esp + 0x2c]
push eax
call fcn.00531732
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], edi
xor esi, esi
call fcn.0053f794
mov eax, dword [0x5554ac]
dec eax
mov dword [0x5554ac], eax
jne 0x431407
mov esi, dword [0x5554a8]
mov dword [0x5554a8], edi
lea ecx, [esp + 0x20]
call fcn.0053f830
cmp esi, edi
je 0x43141d
push esi
call fcn.00531732
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1ac
ret 4