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

Disassembly:
push 0xffffffffffffffff
push 0x45e8da
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x477564]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x477564]
xor eax, esp
push eax
lea eax, [esp + 0x24c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x25c]
and dword [esp + 0x74], 0xfffffe00
xor ebx, ebx
mov dword [esp + 0x68], ebp
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x254], 1
mov dword [esp + 0xec], 0xf
mov dword [esp + 0xe8], ebx
mov byte [esp + 0xd8], bl
lea ecx, [esp + 0xd4]
mov byte [esp + 0x254], 2
call fcn.004096d0
cmp al, bl
je 0x409c7d
mov eax, dword [esp + 0xf0]
mov byte [esp + 0x24], 2
and dword [esp + 0x24], 0xfffffeff
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
push 0x463137
push 0x463134
lea ecx, [esp + 0x74]
push ecx
mov byte [esp + 0x260], 3
call fcn.00426760
mov ecx, eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x254], 2
call fcn.004254e0
mov esi, eax
call fcn.004253f0
mov eax, dword [esp + 0xd8]
mov byte [esp + 0x24], 4
or dword [esp + 0x24], 0x100
cmp dword [esp + 0xec], 0x10
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
jae 0x409bce
lea eax, [esp + 0xd8]
mov edi, dword [esp + 0xe8]
push eax
call fcn.00424a70
add esp, 4
mov dword [esp + 0x1c], eax
push 0x463143
push str.processname
lea edx, [esp + 0x74]
push edx
mov byte [esp + 0x260], 4
call fcn.00426760
mov ecx, eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x254], 2
call fcn.004254e0
mov esi, eax
call fcn.004253f0
mov eax, dword [esp + 0xf4]
mov ecx, dword [esp + 0xf8]
mov byte [esp + 0x24], 2
and dword [esp + 0x24], 0xfffffeff
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
push 0x46314e
push str.createtime
lea edx, [esp + 0x74]
push edx
mov byte [esp + 0x260], 5
call fcn.00426760
mov ecx, eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x254], 2
call fcn.004254e0
mov esi, eax
call fcn.004253f0
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov ecx, ebp
mov byte [esp + 0x254], 7
mov dword [esp + 0x14], ebx
call fcn.00405690
test eax, eax
jbe 0x409de7
mov dword [esp + 0x5c], 0xffffffff
mov dword [esp + 0x18], ebx
mov eax, dword [ebp + 4]
cmp eax, ebx
je 0x409ce1
mov ecx, dword [ebp + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x14], eax
jb 0x409ce6
call fcn.0043c842
mov eax, dword [ebp + 4]
add eax, dword [esp + 0x18]
cmp dword [eax + 0x18], 0x10
jb 0x409cf8
mov eax, dword [eax + 4]
jmp 0x409cfb
add eax, 4
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [esp + 0x50]
cmp ecx, ebx
mov edi, eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xa0], edi
je 0x409d46
mov esi, dword [esp + 0x58]
mov edx, eax
sub edx, ecx
sub esi, ecx
sar edx, 2
sar esi, 2
cmp edx, esi
jae 0x409d46
mov dword [eax], edi
add eax, 4
mov dword [esp + 0x54], eax
jmp 0x409d70
cmp ecx, eax
mov esi, eax
jbe 0x409d51
call fcn.0043c842
push esi
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0xbc]
push ecx
lea eax, [esp + 0x5c]
call fcn.0040c1b0
mov esi, dword [esp + 0x40]
cmp esi, ebx
mov edx, dword [esp + 0x44]
je 0x409da1
mov ecx, dword [esp + 0x48]
mov eax, edx
sub eax, esi
sub ecx, esi
sar eax, 2
sar ecx, 2
cmp eax, ecx
jae 0x409da1
mov eax, edx
add eax, 4
mov dword [edx], 0xffffffff
mov dword [esp + 0x44], eax
jmp 0x409dc8
cmp esi, edx
mov edi, edx
jbe 0x409dac
call fcn.0043c842
push edi
lea eax, [esp + 0x40]
push eax
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0xb0]
push eax
lea eax, [esp + 0x4c]
call fcn.0040c1b0
mov esi, dword [esp + 0x14]
add dword [esp + 0x18], 0x1c
add esi, 1
mov ecx, ebp
mov dword [esp + 0x14], esi
call fcn.00405690
cmp esi, eax
jb 0x409cbc
mov eax, dword [esp + 0xf0]
lea ecx, [esp + 0x3c]
push ecx
lea esi, [esp + 0x50]
call fcn.004098f0
add esp, 4
push 0x463155
push str.files
lea edx, [esp + 0x74]
push edx
call fcn.00426760
mov edi, eax
call fcn.00426220
mov ecx, ebp
mov dword [esp + 0x14], ebx
call fcn.00405690
test eax, eax
jbe 0x40a1b6
mov dword [esp + 0x18], ebx
jmp 0x409e44
mov ebp, dword [esp + 0x68]
and dword [esp + 0x8c], 0xfffffe00
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov byte [esp + 0x254], 9
mov eax, dword [ebp + 4]
cmp eax, ebx
je 0x409e91
mov ecx, dword [ebp + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x14], eax
jb 0x409e96
call fcn.0043c842
mov eax, dword [ebp + 4]
add eax, dword [esp + 0x18]
mov byte [esp + 0x24], 4
mov esi, dword [esp + 0x24]
mov edi, dword [eax + 0x14]
or esi, 0x100
cmp dword [eax + 0x18], 0x10
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
jb 0x409eca
mov eax, dword [eax + 4]
jmp 0x409ecd
add eax, 4
push eax
call fcn.00424a70
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
push 0x46315c
push str.file
lea eax, [esp + 0x8c]
push eax
mov byte [esp + 0x260], 0xa
call fcn.00426760
mov byte [esp + 0x254], 9
movsx ebp, byte [eax + 8]
mov cl, byte [esp + 0x24]
mov byte [eax + 8], cl
mov ecx, dword [eax + 4]
mov edx, esi
xor edx, ebp
mov ebp, dword [eax]
and edx, 0xff
xor esi, edx
mov edx, dword [esp + 0x20]
mov dword [eax + 4], edx
mov edx, dword [eax + 8]
mov dword [eax], edi
mov dword [esp + 0xa8], ecx
mov ecx, edx
shr ecx, 8
and ecx, 1
mov edi, edx
xor edi, esi
and edi, 0x100
shl ecx, 8
xor edi, edx
mov dword [eax + 8], edi
mov edi, dword [eax + 0xc]
xor ecx, esi
and ecx, 0x100
mov dword [eax + 0xc], ebx
xor esi, ecx
mov dword [eax + 0x10], ebx
mov dword [esp + 0x24], esi
mov dword [eax + 0x14], ebx
movsx eax, byte [esp + 0x24]
cmp eax, 4
je 0x409f8b
add eax, 0xfffffffa
cmp eax, 1
ja 0x409f9c
cmp ebp, ebx
je 0x409f9c
mov ecx, ebp
call fcn.00427190
push ebp
call fcn.0043c477
jmp 0x409f99
test esi, 0x100
je 0x409f9c
push ebp
call fcn.0043d169
add esp, 4
cmp edi, ebx
je 0x409fbd
mov eax, dword [edi - 4]
push 0x424dc0
lea esi, [edi - 4]
push eax
push 4
push edi
call fcn.0043ca15
push esi
call fcn.0043d49c
add esp, 4
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x409fd4
mov ecx, dword [esp + 0x44]
sub ecx, eax
sar ecx, 2
cmp dword [esp + 0x14], ecx
jb 0x409fdd
call fcn.0043c842
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x14]
mov eax, dword [eax + ecx*4]
mov byte [esp + 0x24], 2
mov esi, dword [esp + 0x24]
and esi, 0xfffffeff
mov edi, eax
xor ebp, ebp
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebp
push 0x463166
push str.HANDLE
lea edx, [esp + 0x8c]
push edx
mov byte [esp + 0x260], 0xb
call fcn.00426760
mov byte [esp + 0x254], 9
movsx ecx, byte [eax + 8]
mov dl, byte [esp + 0x24]
mov byte [eax + 8], dl
mov edx, esi
xor edx, ecx
mov ecx, dword [eax]
and edx, 0xff
xor esi, edx
mov edx, dword [eax + 4]
mov dword [eax], edi
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
mov edx, dword [eax + 8]
mov ecx, edx
shr ecx, 8
and ecx, 1
mov edi, esi
xor edi, edx
and edi, 0x100
shl ecx, 8
mov dword [eax + 4], ebp
xor edi, edx
mov dword [eax + 8], edi
mov edi, dword [eax + 0xc]
xor ecx, esi
and ecx, 0x100
mov dword [eax + 0xc], ebx
xor esi, ecx
mov dword [eax + 0x10], ebx
mov dword [esp + 0x24], esi
mov dword [eax + 0x14], ebx
movsx eax, byte [esp + 0x24]
cmp eax, 4
je 0x40a0bf
add eax, 0xfffffffa
cmp eax, 1
ja 0x40a0d4
mov esi, dword [esp + 0x5c]
cmp esi, ebx
je 0x40a0d4
mov ecx, esi
call fcn.00427190
push esi
call fcn.0043c477
jmp 0x40a0d1
test esi, 0x100
je 0x40a0d4
mov eax, dword [esp + 0x5c]
push eax
call fcn.0043d169
add esp, 4
cmp edi, ebx
je 0x40a0f5
mov ecx, dword [edi - 4]
push 0x424dc0
lea esi, [edi - 4]
push ecx
push 4
push edi
call fcn.0043ca15
push esi
call fcn.0043d49c
add esp, 4
lea edx, [esp + 0x84]
push edx
push ecx
push 0x463155
push str.files
lea eax, [esp + 0x7c]
push eax
call fcn.00426760
add esp, 4
mov ecx, eax
call fcn.00426b60
mov byte [esp + 0x254], 7
mov ecx, dword [esp + 0x8c]
movsx eax, cl
cmp eax, 4
je 0x40a155
add eax, 0xfffffffa
cmp eax, 1
ja 0x40a16d
mov esi, dword [esp + 0x84]
cmp esi, ebx
je 0x40a16d
mov ecx, esi
call fcn.00427190
push esi
call fcn.0043c477
jmp 0x40a16a
test ecx, 0x100
je 0x40a16d
mov ecx, dword [esp + 0x84]
push ecx
call fcn.0043d169
add esp, 4
mov eax, dword [esp + 0x90]
cmp eax, ebx
je 0x40a195
mov edx, dword [eax - 4]
lea esi, [eax - 4]
push 0x424dc0
push edx
push 4
push eax
call fcn.0043ca15
push esi
call fcn.0043d49c
add esp, 4
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x68]
add dword [esp + 0x18], 0x1c
add esi, 1
mov dword [esp + 0x14], esi
call fcn.00405690
cmp esi, eax
jb 0x409e40
mov ebp, 0xf
mov dword [esp + 0xfc], vtable.Json::FastWriter.0
mov dword [esp + 0x118], ebp
mov dword [esp + 0x114], ebx
mov byte [esp + 0x104], bl
mov byte [esp + 0x11c], bl
mov byte [esp + 0x11d], bl
mov byte [esp + 0x11e], bl
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0xbc]
push ecx
lea ecx, [esp + 0x104]
mov byte [esp + 0x25c], 0xc
call fcn.00428ee0
mov byte [esp + 0x254], 0xd
mov eax, dword [esp + 0xbc]
mov esi, 0x10
cmp dword [esp + 0xd0], esi
jae 0x40a235
lea eax, [esp + 0xbc]
mov ecx, dword [esp + 0xcc]
push eax
lea edi, [esp + 0x20]
call fcn.00409560
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xc4]
mov byte [esp + 0x260], 0xe
call fcn.00405e10
mov byte [esp + 0x254], 0xd
cmp dword [esp + 0x34], esi
jb 0x40a27c
mov edx, dword [esp + 0x20]
push edx
call fcn.0043c477
add esp, 4
push 0x104
lea eax, [esp + 0x141]
push ebx
push eax
mov byte [esp + 0x148], bl
call fcn.004423c0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x140]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x13c]
mov dword [esp + 0x138], ebp
mov dword [esp + 0x134], ebx
mov byte [esp + 0x124], bl
lea edx, [eax + 1]
jmp 0x40a2d0
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40a2d0
sub eax, edx
push eax
lea edx, [esp + 0x140]
push edx
lea ecx, [esp + 0x128]
call fcn.004054f0
push 7
push str.d7pcfg
lea eax, [esp + 0x128]
mov byte [esp + 0x25c], 0xf
call fcn.004079f0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x78], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x144]
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push eax
lea esi, [esp + 0xe0]
mov byte [ecx + 4], bl
call fcn.00405e10
mov ecx, esi
call fcn.0040ef00
mov esi, 0x10
add esp, 0x1c
cmp dword [esp + 0x138], esi
jb 0x40a35c
mov ecx, dword [esp + 0x124]
push ecx
call fcn.0043c477
add esp, 4
cmp dword [esp + 0xd0], esi
mov dword [esp + 0x138], ebp
mov dword [esp + 0x134], ebx
mov byte [esp + 0x124], bl
jb 0x40a38a
mov edx, dword [esp + 0xbc]
push edx
call fcn.0043c477
add esp, 4
cmp dword [esp + 0x118], esi
mov dword [esp + 0xd0], ebp
mov dword [esp + 0xcc], ebx
mov byte [esp + 0xbc], bl
mov dword [esp + 0xfc], vtable.Json::FastWriter.0
jb 0x40a3c3
mov eax, dword [esp + 0x104]
push eax
call fcn.0043c477
add esp, 4
mov eax, dword [esp + 0x40]
cmp eax, ebx
mov dword [esp + 0x118], ebp
mov dword [esp + 0x114], ebx
mov byte [esp + 0x104], bl
mov dword [esp + 0xfc], vtable.Json::Writer.0
je 0x40a3f4
push eax
call fcn.0043c477
add esp, 4
mov eax, dword [esp + 0x50]
cmp eax, ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
je 0x40a411
push eax
call fcn.0043c477
add esp, 4
cmp dword [esp + 0xec], esi
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
jb 0x40a436
mov ecx, dword [esp + 0xd8]
push ecx
call fcn.0043c477
add esp, 4
mov dword [esp + 0x254], 0xffffffff
mov ecx, dword [esp + 0x74]
movsx eax, cl
cmp eax, 4
mov dword [esp + 0xec], ebp
mov dword [esp + 0xe8], ebx
mov byte [esp + 0xd8], bl
je 0x40a481
add eax, 0xfffffffa
cmp eax, 1
ja 0x40a496
mov esi, dword [esp + 0x6c]
cmp esi, ebx
je 0x40a496
mov ecx, esi
call fcn.00427190
push esi
call fcn.0043c477
jmp 0x40a493
test ecx, 0x100
je 0x40a496
mov edx, dword [esp + 0x6c]
push edx
call fcn.0043d169
add esp, 4
mov eax, dword [esp + 0x78]
cmp eax, ebx
je 0x40a4bb
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push 0x424dc0
push ecx
push 4
push eax
call fcn.0043ca15
push esi
call fcn.0043d49c
add esp, 4
mov ecx, dword [esp + 0x24c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0043c709
add esp, 0x244
ret