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

Disassembly:
push 0xffffffffffffffff
push 0x464f3a
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x47f344]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47f344]
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.0040d730
cmp al, bl
je 0x40dcdd
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 0x46a567
push 0x46a564
lea ecx, [esp + 0x74]
push ecx
mov byte [esp + 0x260], 3
call fcn.0042ab80
mov ecx, eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x254], 2
call fcn.00429900
mov esi, eax
call fcn.00429810
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 0x40dc2e
lea eax, [esp + 0xd8]
mov edi, dword [esp + 0xe8]
push eax
call fcn.00428e90
add esp, 4
mov dword [esp + 0x1c], eax
push 0x46a573
push str.processname
lea edx, [esp + 0x74]
push edx
mov byte [esp + 0x260], 4
call fcn.0042ab80
mov ecx, eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x254], 2
call fcn.00429900
mov esi, eax
call fcn.00429810
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 0x46a57e
push str.createtime
lea edx, [esp + 0x74]
push edx
mov byte [esp + 0x260], 5
call fcn.0042ab80
mov ecx, eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x254], 2
call fcn.00429900
mov esi, eax
call fcn.00429810
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.00407470
test eax, eax
jbe 0x40de47
mov dword [esp + 0x5c], 0xffffffff
mov dword [esp + 0x18], ebx
mov eax, dword [ebp + 4]
cmp eax, ebx
je 0x40dd41
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 0x40dd46
call fcn.0043e81d
mov eax, dword [ebp + 4]
add eax, dword [esp + 0x18]
cmp dword [eax + 0x18], 0x10
jb 0x40dd58
mov eax, dword [eax + 4]
jmp 0x40dd5b
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 0x40dda6
mov esi, dword [esp + 0x58]
mov edx, eax
sub edx, ecx
sub esi, ecx
sar edx, 2
sar esi, 2
cmp edx, esi
jae 0x40dda6
mov dword [eax], edi
add eax, 4
mov dword [esp + 0x54], eax
jmp 0x40ddd0
cmp ecx, eax
mov esi, eax
jbe 0x40ddb1
call fcn.0043e81d
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.004100c0
mov esi, dword [esp + 0x40]
cmp esi, ebx
mov edx, dword [esp + 0x44]
je 0x40de01
mov ecx, dword [esp + 0x48]
mov eax, edx
sub eax, esi
sub ecx, esi
sar eax, 2
sar ecx, 2
cmp eax, ecx
jae 0x40de01
mov eax, edx
add eax, 4
mov dword [edx], 0xffffffff
mov dword [esp + 0x44], eax
jmp 0x40de28
cmp esi, edx
mov edi, edx
jbe 0x40de0c
call fcn.0043e81d
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.004100c0
mov esi, dword [esp + 0x14]
add dword [esp + 0x18], 0x1c
add esi, 1
mov ecx, ebp
mov dword [esp + 0x14], esi
call fcn.00407470
cmp esi, eax
jb 0x40dd1c
mov eax, dword [esp + 0xf0]
lea ecx, [esp + 0x3c]
push ecx
lea esi, [esp + 0x50]
call fcn.0040d950
add esp, 4
push 0x46a585
push str.files
lea edx, [esp + 0x74]
push edx
call fcn.0042ab80
mov edi, eax
call fcn.0042a640
mov ecx, ebp
mov dword [esp + 0x14], ebx
call fcn.00407470
test eax, eax
jbe 0x40e216
mov dword [esp + 0x18], ebx
jmp 0x40dea4
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 0x40def1
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 0x40def6
call fcn.0043e81d
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 0x40df2a
mov eax, dword [eax + 4]
jmp 0x40df2d
add eax, 4
push eax
call fcn.00428e90
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
push 0x46a58c
push str.file
lea eax, [esp + 0x8c]
push eax
mov byte [esp + 0x260], 0xa
call fcn.0042ab80
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 0x40dfeb
add eax, 0xfffffffa
cmp eax, 1
ja 0x40dffc
cmp ebp, ebx
je 0x40dffc
mov ecx, ebp
call fcn.0042b5b0
push ebp
call fcn.0043e445
jmp 0x40dff9
test esi, 0x100
je 0x40dffc
push ebp
call fcn.0043fe16
add esp, 4
cmp edi, ebx
je 0x40e01d
mov eax, dword [edi - 4]
push 0x4291e0
lea esi, [edi - 4]
push eax
push 4
push edi
call fcn.0043ef65
push esi
call fcn.0043ebec
add esp, 4
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x40e034
mov ecx, dword [esp + 0x44]
sub ecx, eax
sar ecx, 2
cmp dword [esp + 0x14], ecx
jb 0x40e03d
call fcn.0043e81d
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 0x46a596
push str.HANDLE
lea edx, [esp + 0x8c]
push edx
mov byte [esp + 0x260], 0xb
call fcn.0042ab80
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 0x40e11f
add eax, 0xfffffffa
cmp eax, 1
ja 0x40e134
mov esi, dword [esp + 0x5c]
cmp esi, ebx
je 0x40e134
mov ecx, esi
call fcn.0042b5b0
push esi
call fcn.0043e445
jmp 0x40e131
test esi, 0x100
je 0x40e134
mov eax, dword [esp + 0x5c]
push eax
call fcn.0043fe16
add esp, 4
cmp edi, ebx
je 0x40e155
mov ecx, dword [edi - 4]
push 0x4291e0
lea esi, [edi - 4]
push ecx
push 4
push edi
call fcn.0043ef65
push esi
call fcn.0043ebec
add esp, 4
lea edx, [esp + 0x84]
push edx
push ecx
push 0x46a585
push str.files
lea eax, [esp + 0x7c]
push eax
call fcn.0042ab80
add esp, 4
mov ecx, eax
call fcn.0042af80
mov byte [esp + 0x254], 7
mov ecx, dword [esp + 0x8c]
movsx eax, cl
cmp eax, 4
je 0x40e1b5
add eax, 0xfffffffa
cmp eax, 1
ja 0x40e1cd
mov esi, dword [esp + 0x84]
cmp esi, ebx
je 0x40e1cd
mov ecx, esi
call fcn.0042b5b0
push esi
call fcn.0043e445
jmp 0x40e1ca
test ecx, 0x100
je 0x40e1cd
mov ecx, dword [esp + 0x84]
push ecx
call fcn.0043fe16
add esp, 4
mov eax, dword [esp + 0x90]
cmp eax, ebx
je 0x40e1f5
mov edx, dword [eax - 4]
lea esi, [eax - 4]
push 0x4291e0
push edx
push 4
push eax
call fcn.0043ef65
push esi
call fcn.0043ebec
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.00407470
cmp esi, eax
jb 0x40dea0
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.0042d2f0
mov byte [esp + 0x254], 0xd
mov eax, dword [esp + 0xbc]
mov esi, 0x10
cmp dword [esp + 0xd0], esi
jae 0x40e295
lea eax, [esp + 0xbc]
mov ecx, dword [esp + 0xcc]
push eax
lea edi, [esp + 0x20]
call fcn.0040d5c0
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xc4]
mov byte [esp + 0x260], 0xe
call fcn.00407c00
mov byte [esp + 0x254], 0xd
cmp dword [esp + 0x34], esi
jb 0x40e2dc
mov edx, dword [esp + 0x20]
push edx
call fcn.0043e445
add esp, 4
push 0x104
lea eax, [esp + 0x141]
push ebx
push eax
mov byte [esp + 0x148], bl
call fcn.00442eb0
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 0x40e330
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40e330
sub eax, edx
push eax
lea edx, [esp + 0x140]
push edx
lea ecx, [esp + 0x128]
call fcn.00406e20
push 7
push str.d7pcfg
lea eax, [esp + 0x128]
mov byte [esp + 0x25c], 0xf
call fcn.00408d20
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.00407c00
mov ecx, esi
call fcn.004129b0
mov esi, 0x10
add esp, 0x1c
cmp dword [esp + 0x138], esi
jb 0x40e3bc
mov ecx, dword [esp + 0x124]
push ecx
call fcn.0043e445
add esp, 4
cmp dword [esp + 0xd0], esi
mov dword [esp + 0x138], ebp
mov dword [esp + 0x134], ebx
mov byte [esp + 0x124], bl
jb 0x40e3ea
mov edx, dword [esp + 0xbc]
push edx
call fcn.0043e445
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 0x40e423
mov eax, dword [esp + 0x104]
push eax
call fcn.0043e445
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 0x40e454
push eax
call fcn.0043e445
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 0x40e471
push eax
call fcn.0043e445
add esp, 4
cmp dword [esp + 0xec], esi
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
jb 0x40e496
mov ecx, dword [esp + 0xd8]
push ecx
call fcn.0043e445
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 0x40e4e1
add eax, 0xfffffffa
cmp eax, 1
ja 0x40e4f6
mov esi, dword [esp + 0x6c]
cmp esi, ebx
je 0x40e4f6
mov ecx, esi
call fcn.0042b5b0
push esi
call fcn.0043e445
jmp 0x40e4f3
test ecx, 0x100
je 0x40e4f6
mov edx, dword [esp + 0x6c]
push edx
call fcn.0043fe16
add esp, 4
mov eax, dword [esp + 0x78]
cmp eax, ebx
je 0x40e51b
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push 0x4291e0
push ecx
push 4
push eax
call fcn.0043ef65
push esi
call fcn.0043ebec
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.0043e436
add esp, 0x244
ret