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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x560328
push eax
mov dword fs:[0], esp
sub esp, 0x29c
push ebx
mov ebx, dword [esp + 0x2b0]
push ebp
push esi
mov esi, ecx
push ebx
lea ecx, [esi + 0x84]
call fcn.00409240
mov eax, dword [esi + 0x7c]
xor ebp, ebp
cmp eax, ebp
jne 0x402133
xor eax, eax
jmp 0x402932
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x70], ebp
call fcn.00408f40
lea ecx, [esp + 0x24]
mov dword [esp + 0x2b4], ebp
call fcn.00408f40
lea ecx, [esp + 0x10]
mov byte [esp + 0x2b4], 1
call fcn.00408f40
lea ecx, [esp + 0x20]
mov byte [esp + 0x2b4], 2
call fcn.00408f40
lea ecx, [esp + 0x18]
mov byte [esp + 0x2b4], 3
call fcn.00408f40
lea ecx, [esp + 0x48]
mov byte [esp + 0x2b4], 4
call fcn.00408f40
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [esp + 0x1c]
push eax
push ebp
push ebp
mov byte [esp + 0x2c0], 5
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
call edi
test eax, eax
jl 0x402883
lea ecx, [esp + 0x24]
push ecx
push 0x11
push ebp
call edi
test eax, eax
jl 0x402883
mov eax, dword [esi + 0x7c]
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [eax]
push 0x59c148
push ebp
push ecx
push eax
call dword [edx + 0x14]
test eax, eax
jl 0x402883
mov eax, dword [esi + 0x7c]
lea edx, [esp + 0xa4]
push ebp
push edx
push ebp
push eax
lea ecx, [esp + 0x2c]
call fcn.004092c0
test eax, eax
jl 0x402883
mov ecx, dword [esi + 0x1c]
push ebp
push ebp
push 0x146
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jle 0x40224d
push ebp
mov ecx, esi
call fcn.0052b3af
test eax, eax
jne 0x402241
mov edi, 1
lea edx, [esp + 0xa4]
mov dword [esp + 0x50], ebp
push 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x50], 0x37
mov ebp, edi
mov dword [esp + 0x58], edx
call fcn.00409470
lea ecx, [esp + 0x4c]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, esi
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], eax
call fcn.0052b3dd
mov ecx, ebx
call fcn.00409580
test eax, eax
je 0x4022cd
mov edx, dword [esi + 0x1c]
push 0
push 0
push 0x14e
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0xa4]
lea ecx, [esi + 0x88]
push eax
call fcn.00530d18
jmp 0x402323
push edi
push ebx
lea ecx, [esp + 0x20]
call fcn.004090f0
mov ecx, ebx
call fcn.00409520
cmp eax, edi
jne 0x4022e9
mov dword [esp + 0x78], edi
jmp 0x402323
push 2
push ebx
lea ecx, [esp + 0x50]
call fcn.004090f0
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004095a0
test eax, eax
je 0x40231f
mov ecx, ebx
call fcn.00409520
cmp eax, 2
jne 0x402319
mov dword [esp + 0x7c], edi
jmp 0x402323
mov dword [esp + 0x3c], edi
jmp 0x402323
mov dword [esp + 0x40], edi
mov eax, dword [esi + 0x7c]
lea ecx, [esp + 0x30]
push ecx
push 0x20
mov edx, dword [eax]
push 0
push eax
call dword [edx + 0x10]
test eax, eax
jl 0x402881
or eax, 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], eax
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x30]
push 0
push ecx
push edi
mov edx, dword [eax]
push eax
call dword [edx + 0xc]
test eax, eax
jne 0x40266c
mov eax, dword [esi + 0x7c]
lea edx, [esp + 0xa4]
push 0
push edx
push 0
push eax
lea ecx, [esp + 0x20]
call fcn.004092c0
test eax, eax
jl 0x402881
lea ecx, [esp + 0xa4]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ecx
push 0
lea ecx, [esp + 0x14]
inc ebp
call fcn.00409470
mov edx, dword [esp + 0x10]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
lea eax, [esp + 0x4c]
push eax
mov ecx, esi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edx
call fcn.0052b3dd
mov eax, dword [esp + 0x78]
test eax, eax
je 0x4023ee
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebx
call fcn.004095a0
test eax, eax
je 0x4023ee
mov edx, dword [esp + 0x50]
mov eax, dword [esi + 0x1c]
push 0
push edx
push 0x14e
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x402410
mov eax, dword [esp + 0x40]
test eax, eax
je 0x402410
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004095a0
test eax, eax
je 0x402410
mov edx, dword [esp + 0x50]
mov dword [esp + 0x74], edx
lea eax, [esp + 0x24]
lea ecx, [esp + 0x10]
push eax
call fcn.004095a0
test eax, eax
je 0x402649
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x34]
push edx
push 0x20
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x10]
test eax, eax
jl 0x402881
lea eax, [ebp - 1]
lea edx, [esp + 0x20]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x34]
push 0
push edx
mov ecx, dword [eax]
push edi
push eax
mov ebx, ebp
call dword [ecx + 0xc]
test eax, eax
jne 0x402642
lea eax, [esp + 0x24]
lea ecx, [esp + 0x14]
push eax
call fcn.00408f60
lea ecx, [esp + 0x20]
mov byte [esp + 0x2b4], 6
push ecx
lea ecx, [esp + 0x18]
call fcn.00408fd0
mov eax, dword [esi + 0x7c]
lea edx, [esp + 0xa4]
push 0
push edx
push 0
push eax
lea ecx, [esp + 0x24]
call fcn.004092c0
test eax, eax
jl 0x40269f
mov edx, dword [esi + 0x7c]
lea ecx, [esp + 0x1a8]
push 0
push ecx
push 0xc000
push edx
lea ecx, [esp + 0x24]
call fcn.004092c0
test eax, eax
jl 0x40269f
lea ecx, [esp + 0x2c]
mov edi, ebx
mov dword [esp + 0x80], 0x20
call fcn.00408f40
cmp ebx, ebp
mov byte [esp + 0x2b4], 7
jge 0x40253e
lea eax, [esp + 0x80]
mov ecx, esi
push eax
mov dword [esp + 0x88], edi
call fcn.0052b3c6
test eax, eax
je 0x40253e
lea ecx, [esp + 0x2c]
call fcn.00409570
mov ecx, dword [esp + 0xa0]
push ecx
lea ecx, [esp + 0x30]
call fcn.00409550
mov edx, dword [esi + 0x7c]
lea eax, [esp + 0x2c]
push edx
push eax
lea ecx, [esp + 0x1c]
call fcn.00409600
test eax, eax
jl 0x40253e
inc edi
cmp edi, ebp
jl 0x4024ef
lea ecx, [esp + 0x2c]
call fcn.00409570
lea ecx, [esp + 0xa4]
push 0
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x54], edi
call fcn.00409470
mov edx, dword [esp + 0x14]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
lea eax, [esp + 0x4c]
push eax
mov ecx, esi
mov dword [esp + 0x6c], 2
mov dword [esp + 0x70], edx
call fcn.0052b3dd
mov eax, dword [esp + 0x7c]
test eax, eax
jne 0x402595
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4025f6
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x4c]
call fcn.004095a0
test eax, eax
je 0x4025f6
mov edx, dword [esp + 0x50]
mov eax, dword [esi + 0x1c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push edx
push 0x14e
push eax
call edi
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x1a8]
push ecx
push 0
push 0
push 0x407
push edx
call edi
push eax
call fcn.0052da16
mov ecx, eax
call fcn.0053144b
lea eax, [esp + 0x1a8]
lea ecx, [esi + 0x88]
push eax
call fcn.00530d18
lea ecx, [esp + 0x14]
call fcn.00409570
lea ecx, [esp + 0x2c]
inc ebp
mov byte [esp + 0x2b4], 6
call fcn.00408f80
lea ecx, [esp + 0x14]
mov byte [esp + 0x2b4], 5
call fcn.00408f80
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x20]
push 0
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x402464
mov edi, 1
mov ebx, dword [esp + 0x2bc]
lea ecx, [esp + 0x10]
call fcn.00409570
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x10]
push 0
push edx
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x402362
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x402680
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x40287d
mov ebp, dword [esp + 0x74]
cmp ebp, 0xffffffff
jne 0x402693
cmp dword [esp + 0x38], ebp
je 0x402881
test eax, eax
je 0x4026b5
mov edi, 2
inc ebp
jmp 0x4026d9
lea ecx, [esp + 0x14]
mov byte [esp + 0x2b4], 5
call fcn.00408f80
jmp 0x402881
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0x147
push eax
mov edi, 3
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebp, eax
inc ebp
cmp ebp, 0xffffffff
je 0x402881
mov ecx, ebx
call fcn.00409520
mov ebx, eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], ebx
call fcn.00409570
cmp edi, ebx
jg 0x402829
lea ebx, [edi - 1]
mov ecx, dword [esp + 0x2bc]
push edi
push ecx
lea ecx, [esp + 0x18]
call fcn.004090f0
lea edx, [esp + 0x10]
push ebx
push edx
lea ecx, [esp + 0x28]
call fcn.004090f0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x402729
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x7c]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [eax]
push 0x59c148
push 0
push ecx
push eax
call dword [edx + 0x14]
test eax, eax
jl 0x402881
push ebx
lea ecx, [esp + 0x14]
call fcn.004090c0
push eax
lea ecx, [esp + 0x1c]
call fcn.00409550
mov eax, dword [esp + 0x28]
lea edx, [esp + 0xa4]
push 0
push edx
push 0
push eax
lea ecx, [esp + 0x28]
call fcn.004092c0
test eax, eax
jl 0x40294c
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x1a8]
push 0
push ecx
push 0xc000
push edx
lea ecx, [esp + 0x28]
call fcn.004092c0
test eax, eax
jge 0x4027b7
xor eax, eax
mov cl, byte [esp + eax + 0xa4]
mov byte [esp + eax + 0x1a8], cl
inc eax
test cl, cl
jne 0x4027a4
lea ecx, [esp + 0x18]
call fcn.00409570
lea eax, [esp + 0xa4]
push 0x5c
push eax
call fcn.00514c1a
add esp, 8
test eax, eax
je 0x4027d9
inc eax
jmp 0x4027e0
lea eax, [esp + 0xa4]
mov dword [esp + 0x50], ebp
push 0
lea ecx, [esp + 0x14]
inc ebp
mov dword [esp + 0x58], eax
call fcn.00409470
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], ecx
inc edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
inc ebx
call fcn.00409570
lea edx, [esp + 0x4c]
mov ecx, esi
push edx
call fcn.0052b3dd
cmp edi, dword [esp + 0x38]
jle 0x4026fa
mov eax, dword [esp + 0x50]
mov ecx, dword [esi + 0x1c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x14e
push ecx
call edi
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x1a8]
push edx
push 0
push 0
push 0x407
push eax
call edi
push eax
call fcn.0052da16
mov ecx, eax
call fcn.0053144b
lea ecx, [esp + 0x1a8]
push ecx
lea ecx, [esi + 0x88]
call fcn.00530d18
mov edi, 1
mov dword [esp + 0x70], edi
xor ebp, ebp
lea ecx, [esp + 0x1c]
call fcn.00409570
mov eax, dword [esp + 0x30]
pop edi
cmp eax, ebp
je 0x40289b
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x40]
cmp eax, ebp
je 0x4028a9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x30]
cmp eax, ebp
je 0x4028b7
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x4028c5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0x44]
mov byte [esp + 0x2b0], 4
call fcn.00408f80
lea ecx, [esp + 0x14]
mov byte [esp + 0x2b0], 3
call fcn.00408f80
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2b0], 2
call fcn.00408f80
lea ecx, [esp + 0xc]
mov byte [esp + 0x2b0], 1
call fcn.00408f80
lea ecx, [esp + 0x20]
mov byte [esp + 0x2b0], 0
call fcn.00408f80
lea ecx, [esp + 0x18]
mov dword [esp + 0x2b0], 0xffffffff
call fcn.00408f80
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x2a8]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2a8
ret 4
lea ecx, [esp + 0x18]
call fcn.00409570
jmp 0x402881