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

Disassembly:
push 0xffffffffffffffff
push 0x45eaea
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.004099a0
cmp al, bl
je 0x409f4d
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 0x464183
push 0x464180
lea ecx, [esp + 0x74]
push ecx
mov byte [esp + 0x260], 3
call fcn.004268a0
mov ecx, eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x254], 2
call fcn.00425620
mov esi, eax
call fcn.00425530
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 0x409e9e
lea eax, [esp + 0xd8]
mov edi, dword [esp + 0xe8]
push eax
call fcn.00424bb0
add esp, 4
mov dword [esp + 0x1c], eax
push 0x46418f
push str.processname
lea edx, [esp + 0x74]
push edx
mov byte [esp + 0x260], 4
call fcn.004268a0
mov ecx, eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x254], 2
call fcn.00425620
mov esi, eax
call fcn.00425530
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 0x46419a
push str.createtime
lea edx, [esp + 0x74]
push edx
mov byte [esp + 0x260], 5
call fcn.004268a0
mov ecx, eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x254], 2
call fcn.00425620
mov esi, eax
call fcn.00425530
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.00405850
test eax, eax
jbe 0x40a0b7
mov dword [esp + 0x5c], 0xffffffff
mov dword [esp + 0x18], ebx
mov eax, dword [ebp + 4]
cmp eax, ebx
je 0x409fb1
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 0x409fb6
call fcn.0043be4b
mov eax, dword [ebp + 4]
add eax, dword [esp + 0x18]
cmp dword [eax + 0x18], 0x10
jb 0x409fc8
mov eax, dword [eax + 4]
jmp 0x409fcb
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 0x40a016
mov esi, dword [esp + 0x58]
mov edx, eax
sub edx, ecx
sub esi, ecx
sar edx, 2
sar esi, 2
cmp edx, esi
jae 0x40a016
mov dword [eax], edi
add eax, 4
mov dword [esp + 0x54], eax
jmp 0x40a040
cmp ecx, eax
mov esi, eax
jbe 0x40a021
call fcn.0043be4b
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.0040c3d0
mov esi, dword [esp + 0x40]
cmp esi, ebx
mov edx, dword [esp + 0x44]
je 0x40a071
mov ecx, dword [esp + 0x48]
mov eax, edx
sub eax, esi
sub ecx, esi
sar eax, 2
sar ecx, 2
cmp eax, ecx
jae 0x40a071
mov eax, edx
add eax, 4
mov dword [edx], 0xffffffff
mov dword [esp + 0x44], eax
jmp 0x40a098
cmp esi, edx
mov edi, edx
jbe 0x40a07c
call fcn.0043be4b
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.0040c3d0
mov esi, dword [esp + 0x14]
add dword [esp + 0x18], 0x1c
add esi, 1
mov ecx, ebp
mov dword [esp + 0x14], esi
call fcn.00405850
cmp esi, eax
jb 0x409f8c
mov eax, dword [esp + 0xf0]
lea ecx, [esp + 0x3c]
push ecx
lea esi, [esp + 0x50]
call fcn.00409bc0
add esp, 4
push 0x4641a1
push str.files
lea edx, [esp + 0x74]
push edx
call fcn.004268a0
mov edi, eax
call fcn.00426360
mov ecx, ebp
mov dword [esp + 0x14], ebx
call fcn.00405850
test eax, eax
jbe 0x40a486
mov dword [esp + 0x18], ebx
jmp 0x40a114
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 0x40a161
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 0x40a166
call fcn.0043be4b
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 0x40a19a
mov eax, dword [eax + 4]
jmp 0x40a19d
add eax, 4
push eax
call fcn.00424bb0
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
push 0x4641a8
push str.file
lea eax, [esp + 0x8c]
push eax
mov byte [esp + 0x260], 0xa
call fcn.004268a0
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 0x40a25b
add eax, 0xfffffffa
cmp eax, 1
ja 0x40a26c
cmp ebp, ebx
je 0x40a26c
mov ecx, ebp
call fcn.004272d0
push ebp
call fcn.0043bef7
jmp 0x40a269
test esi, 0x100
je 0x40a26c
push ebp
call fcn.0043c93b
add esp, 4
cmp edi, ebx
je 0x40a28d
mov eax, dword [edi - 4]
push 0x424f00
lea esi, [edi - 4]
push eax
push 4
push edi
call fcn.0043c090
push esi
call fcn.0043c771
add esp, 4
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x40a2a4
mov ecx, dword [esp + 0x44]
sub ecx, eax
sar ecx, 2
cmp dword [esp + 0x14], ecx
jb 0x40a2ad
call fcn.0043be4b
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 0x4641b2
push str.HANDLE
lea edx, [esp + 0x8c]
push edx
mov byte [esp + 0x260], 0xb
call fcn.004268a0
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 0x40a38f
add eax, 0xfffffffa
cmp eax, 1
ja 0x40a3a4
mov esi, dword [esp + 0x5c]
cmp esi, ebx
je 0x40a3a4
mov ecx, esi
call fcn.004272d0
push esi
call fcn.0043bef7
jmp 0x40a3a1
test esi, 0x100
je 0x40a3a4
mov eax, dword [esp + 0x5c]
push eax
call fcn.0043c93b
add esp, 4
cmp edi, ebx
je 0x40a3c5
mov ecx, dword [edi - 4]
push 0x424f00
lea esi, [edi - 4]
push ecx
push 4
push edi
call fcn.0043c090
push esi
call fcn.0043c771
add esp, 4
lea edx, [esp + 0x84]
push edx
push ecx
push 0x4641a1
push str.files
lea eax, [esp + 0x7c]
push eax
call fcn.004268a0
add esp, 4
mov ecx, eax
call fcn.00426ca0
mov byte [esp + 0x254], 7
mov ecx, dword [esp + 0x8c]
movsx eax, cl
cmp eax, 4
je 0x40a425
add eax, 0xfffffffa
cmp eax, 1
ja 0x40a43d
mov esi, dword [esp + 0x84]
cmp esi, ebx
je 0x40a43d
mov ecx, esi
call fcn.004272d0
push esi
call fcn.0043bef7
jmp 0x40a43a
test ecx, 0x100
je 0x40a43d
mov ecx, dword [esp + 0x84]
push ecx
call fcn.0043c93b
add esp, 4
mov eax, dword [esp + 0x90]
cmp eax, ebx
je 0x40a465
mov edx, dword [eax - 4]
lea esi, [eax - 4]
push 0x424f00
push edx
push 4
push eax
call fcn.0043c090
push esi
call fcn.0043c771
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.00405850
cmp esi, eax
jb 0x40a110
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.00428fc0
mov byte [esp + 0x254], 0xd
mov eax, dword [esp + 0xbc]
mov esi, 0x10
cmp dword [esp + 0xd0], esi
jae 0x40a505
lea eax, [esp + 0xbc]
mov ecx, dword [esp + 0xcc]
push eax
lea edi, [esp + 0x20]
call fcn.00409830
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xc4]
mov byte [esp + 0x260], 0xe
call fcn.00405fd0
mov byte [esp + 0x254], 0xd
cmp dword [esp + 0x34], esi
jb 0x40a54c
mov edx, dword [esp + 0x20]
push edx
call fcn.0043bef7
add esp, 4
push 0x104
lea eax, [esp + 0x141]
push ebx
push eax
mov byte [esp + 0x148], bl
call fcn.0043e300
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 0x40a5a0
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40a5a0
sub eax, edx
push eax
lea edx, [esp + 0x140]
push edx
lea ecx, [esp + 0x128]
call fcn.004056b0
push 7
push str.d7pcfg
lea eax, [esp + 0x128]
mov byte [esp + 0x25c], 0xf
call fcn.00407c90
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.00405fd0
mov ecx, esi
call fcn.0040f0d0
mov esi, 0x10
add esp, 0x1c
cmp dword [esp + 0x138], esi
jb 0x40a62c
mov ecx, dword [esp + 0x124]
push ecx
call fcn.0043bef7
add esp, 4
cmp dword [esp + 0xd0], esi
mov dword [esp + 0x138], ebp
mov dword [esp + 0x134], ebx
mov byte [esp + 0x124], bl
jb 0x40a65a
mov edx, dword [esp + 0xbc]
push edx
call fcn.0043bef7
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 0x40a693
mov eax, dword [esp + 0x104]
push eax
call fcn.0043bef7
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 0x40a6c4
push eax
call fcn.0043bef7
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 0x40a6e1
push eax
call fcn.0043bef7
add esp, 4
cmp dword [esp + 0xec], esi
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
jb 0x40a706
mov ecx, dword [esp + 0xd8]
push ecx
call fcn.0043bef7
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 0x40a751
add eax, 0xfffffffa
cmp eax, 1
ja 0x40a766
mov esi, dword [esp + 0x6c]
cmp esi, ebx
je 0x40a766
mov ecx, esi
call fcn.004272d0
push esi
call fcn.0043bef7
jmp 0x40a763
test ecx, 0x100
je 0x40a766
mov edx, dword [esp + 0x6c]
push edx
call fcn.0043c93b
add esp, 4
mov eax, dword [esp + 0x78]
cmp eax, ebx
je 0x40a78b
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push 0x424f00
push ecx
push 4
push eax
call fcn.0043c090
push esi
call fcn.0043c771
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.0043b82a
add esp, 0x244
ret