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

Disassembly:
push 0xffffffffffffffff
push 0x45f6ba
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x478354]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x478354]
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.0040a340
cmp al, bl
je 0x40a8ed
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 0x46428b
push 0x464288
lea ecx, [esp + 0x74]
push ecx
mov byte [esp + 0x260], 3
call fcn.00427430
mov ecx, eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x254], 2
call fcn.004261b0
mov esi, eax
call fcn.004260c0
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 0x40a83e
lea eax, [esp + 0xd8]
mov edi, dword [esp + 0xe8]
push eax
call fcn.00425740
add esp, 4
mov dword [esp + 0x1c], eax
push 0x464297
push str.processname
lea edx, [esp + 0x74]
push edx
mov byte [esp + 0x260], 4
call fcn.00427430
mov ecx, eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x254], 2
call fcn.004261b0
mov esi, eax
call fcn.004260c0
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 0x4642a2
push str.createtime
lea edx, [esp + 0x74]
push edx
mov byte [esp + 0x260], 5
call fcn.00427430
mov ecx, eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x254], 2
call fcn.004261b0
mov esi, eax
call fcn.004260c0
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.004062a0
test eax, eax
jbe 0x40aa57
mov dword [esp + 0x5c], 0xffffffff
mov dword [esp + 0x18], ebx
mov eax, dword [ebp + 4]
cmp eax, ebx
je 0x40a951
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 0x40a956
call fcn.0043c81d
mov eax, dword [ebp + 4]
add eax, dword [esp + 0x18]
cmp dword [eax + 0x18], 0x10
jb 0x40a968
mov eax, dword [eax + 4]
jmp 0x40a96b
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 0x40a9b6
mov esi, dword [esp + 0x58]
mov edx, eax
sub edx, ecx
sub esi, ecx
sar edx, 2
sar esi, 2
cmp edx, esi
jae 0x40a9b6
mov dword [eax], edi
add eax, 4
mov dword [esp + 0x54], eax
jmp 0x40a9e0
cmp ecx, eax
mov esi, eax
jbe 0x40a9c1
call fcn.0043c81d
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.0040cde0
mov esi, dword [esp + 0x40]
cmp esi, ebx
mov edx, dword [esp + 0x44]
je 0x40aa11
mov ecx, dword [esp + 0x48]
mov eax, edx
sub eax, esi
sub ecx, esi
sar eax, 2
sar ecx, 2
cmp eax, ecx
jae 0x40aa11
mov eax, edx
add eax, 4
mov dword [edx], 0xffffffff
mov dword [esp + 0x44], eax
jmp 0x40aa38
cmp esi, edx
mov edi, edx
jbe 0x40aa1c
call fcn.0043c81d
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.0040cde0
mov esi, dword [esp + 0x14]
add dword [esp + 0x18], 0x1c
add esi, 1
mov ecx, ebp
mov dword [esp + 0x14], esi
call fcn.004062a0
cmp esi, eax
jb 0x40a92c
mov eax, dword [esp + 0xf0]
lea ecx, [esp + 0x3c]
push ecx
lea esi, [esp + 0x50]
call fcn.0040a560
add esp, 4
push 0x4642a9
push str.files
lea edx, [esp + 0x74]
push edx
call fcn.00427430
mov edi, eax
call fcn.00426ef0
mov ecx, ebp
mov dword [esp + 0x14], ebx
call fcn.004062a0
test eax, eax
jbe 0x40ae26
mov dword [esp + 0x18], ebx
jmp 0x40aab4
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 0x40ab01
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 0x40ab06
call fcn.0043c81d
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 0x40ab3a
mov eax, dword [eax + 4]
jmp 0x40ab3d
add eax, 4
push eax
call fcn.00425740
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
push 0x4642b0
push str.file
lea eax, [esp + 0x8c]
push eax
mov byte [esp + 0x260], 0xa
call fcn.00427430
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 0x40abfb
add eax, 0xfffffffa
cmp eax, 1
ja 0x40ac0c
cmp ebp, ebx
je 0x40ac0c
mov ecx, ebp
call fcn.00427e60
push ebp
call fcn.0043c992
jmp 0x40ac09
test esi, 0x100
je 0x40ac0c
push ebp
call fcn.0043d55d
add esp, 4
cmp edi, ebx
je 0x40ac2d
mov eax, dword [edi - 4]
push 0x425a90
lea esi, [edi - 4]
push eax
push 4
push edi
call fcn.0043cb2b
push esi
call fcn.0043d20c
add esp, 4
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x40ac44
mov ecx, dword [esp + 0x44]
sub ecx, eax
sar ecx, 2
cmp dword [esp + 0x14], ecx
jb 0x40ac4d
call fcn.0043c81d
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 0x4642ba
push str.HANDLE
lea edx, [esp + 0x8c]
push edx
mov byte [esp + 0x260], 0xb
call fcn.00427430
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 0x40ad2f
add eax, 0xfffffffa
cmp eax, 1
ja 0x40ad44
mov esi, dword [esp + 0x5c]
cmp esi, ebx
je 0x40ad44
mov ecx, esi
call fcn.00427e60
push esi
call fcn.0043c992
jmp 0x40ad41
test esi, 0x100
je 0x40ad44
mov eax, dword [esp + 0x5c]
push eax
call fcn.0043d55d
add esp, 4
cmp edi, ebx
je 0x40ad65
mov ecx, dword [edi - 4]
push 0x425a90
lea esi, [edi - 4]
push ecx
push 4
push edi
call fcn.0043cb2b
push esi
call fcn.0043d20c
add esp, 4
lea edx, [esp + 0x84]
push edx
push ecx
push 0x4642a9
push str.files
lea eax, [esp + 0x7c]
push eax
call fcn.00427430
add esp, 4
mov ecx, eax
call fcn.00427830
mov byte [esp + 0x254], 7
mov ecx, dword [esp + 0x8c]
movsx eax, cl
cmp eax, 4
je 0x40adc5
add eax, 0xfffffffa
cmp eax, 1
ja 0x40addd
mov esi, dword [esp + 0x84]
cmp esi, ebx
je 0x40addd
mov ecx, esi
call fcn.00427e60
push esi
call fcn.0043c992
jmp 0x40adda
test ecx, 0x100
je 0x40addd
mov ecx, dword [esp + 0x84]
push ecx
call fcn.0043d55d
add esp, 4
mov eax, dword [esp + 0x90]
cmp eax, ebx
je 0x40ae05
mov edx, dword [eax - 4]
lea esi, [eax - 4]
push 0x425a90
push edx
push 4
push eax
call fcn.0043cb2b
push esi
call fcn.0043d20c
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.004062a0
cmp esi, eax
jb 0x40aab0
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.00429bd0
mov byte [esp + 0x254], 0xd
mov eax, dword [esp + 0xbc]
mov esi, 0x10
cmp dword [esp + 0xd0], esi
jae 0x40aea5
lea eax, [esp + 0xbc]
mov ecx, dword [esp + 0xcc]
push eax
lea edi, [esp + 0x20]
call fcn.0040a1d0
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xc4]
mov byte [esp + 0x260], 0xe
call fcn.00406a20
mov byte [esp + 0x254], 0xd
cmp dword [esp + 0x34], esi
jb 0x40aeec
mov edx, dword [esp + 0x20]
push edx
call fcn.0043c992
add esp, 4
push 0x104
lea eax, [esp + 0x141]
push ebx
push eax
mov byte [esp + 0x148], bl
call fcn.0043eb30
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 0x40af40
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40af40
sub eax, edx
push eax
lea edx, [esp + 0x140]
push edx
lea ecx, [esp + 0x128]
call fcn.00406100
push 7
push str.d7pcfg
lea eax, [esp + 0x128]
mov byte [esp + 0x25c], 0xf
call fcn.00408660
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.00406a20
mov ecx, esi
call fcn.0040faf0
mov esi, 0x10
add esp, 0x1c
cmp dword [esp + 0x138], esi
jb 0x40afcc
mov ecx, dword [esp + 0x124]
push ecx
call fcn.0043c992
add esp, 4
cmp dword [esp + 0xd0], esi
mov dword [esp + 0x138], ebp
mov dword [esp + 0x134], ebx
mov byte [esp + 0x124], bl
jb 0x40affa
mov edx, dword [esp + 0xbc]
push edx
call fcn.0043c992
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 0x40b033
mov eax, dword [esp + 0x104]
push eax
call fcn.0043c992
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 0x40b064
push eax
call fcn.0043c992
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 0x40b081
push eax
call fcn.0043c992
add esp, 4
cmp dword [esp + 0xec], esi
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
jb 0x40b0a6
mov ecx, dword [esp + 0xd8]
push ecx
call fcn.0043c992
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 0x40b0f1
add eax, 0xfffffffa
cmp eax, 1
ja 0x40b106
mov esi, dword [esp + 0x6c]
cmp esi, ebx
je 0x40b106
mov ecx, esi
call fcn.00427e60
push esi
call fcn.0043c992
jmp 0x40b103
test ecx, 0x100
je 0x40b106
mov edx, dword [esp + 0x6c]
push edx
call fcn.0043d55d
add esp, 4
mov eax, dword [esp + 0x78]
cmp eax, ebx
je 0x40b12b
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push 0x425a90
push ecx
push 4
push eax
call fcn.0043cb2b
push esi
call fcn.0043d20c
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.0043c23a
add esp, 0x244
ret