Function at 0x29a71930
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x29b283d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c0
push ebx
push ebp
mov ebp, dword [esp + 0x6dc]
mov eax, dword [ebp]
push esi
push edi
mov ecx, ebp
call dword [eax + 0x1a0]
mov edx, dword [ebp]
mov esi, eax
mov ecx, ebp
mov dword [esp + 0x34], esi
call dword [edx + 0xb4]
mov ebx, dword [esp + 0x6e0]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x254]
xor edi, edi
cmp eax, edi
je 0x29a71998
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x144]
test eax, eax
jne 0x29a719b3
cmp esi, edi
je 0x29a7204a
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0xb4]
test eax, eax
je 0x29a7204a
mov eax, dword [ebp]
mov ecx, ebp
mov dword [esp + 0x4c], edi
call dword [eax + 0x144]
test eax, eax
je 0x29a719df
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x144]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xbc]
mov dword [esp + 0x4c], eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], edi
call fcn.29a9c8f0
mov dword [esp + 0x6d8], edi
mov ecx, dword [esp + 0x50]
cmp ecx, edi
jne 0x29a71a07
mov ecx, 0x29b415c4
xor edi, edi
lea esi, [esp + 0x4bc]
call fcn.29a74160
lea eax, [ebx + 0x890]
cmp eax, edi
je 0x29a71a33
cmp word [eax], di
je 0x29a71a33
push eax
mov ecx, esi
push ecx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
jmp 0x29a71a50
cmp word [esp + 0x4bc], di
jne 0x29a71a50
lea edx, [esp + 0x4bc]
push edx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea esi, [esp + 0x4bc]
call fcn.29a96450
mov eax, esi
push 0x29b42180
push eax
xor eax, eax
lea ecx, [esp + 0xa4]
call fcn.29a96860
add esp, 8
cmp eax, 1
jne 0x29a72004
mov esi, dword [esp + 0x14]
cmp esi, edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x40], edi
je 0x29a71ace
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x144]
test eax, eax
jne 0x29a71ace
push 0x6c
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, edi
je 0x29a71abf
call fcn.29a9c6c0
mov ecx, eax
mov eax, esi
mov dword [esp + 0x48], ecx
call fcn.29a9c2d0
jmp 0x29a71af3
xor ecx, ecx
mov eax, esi
mov dword [esp + 0x48], ecx
call fcn.29a9c2d0
jmp 0x29a71af3
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x144]
test eax, eax
je 0x29a71af3
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x144]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x38]
mov dword [esp + 0x40], eax
mov eax, dword [ebp]
mov esi, 2
mov edi, 0x5a
mov ecx, ebp
mov dword [esp + 0x18], esi
mov dword [esp + 0x2c], edi
call dword [eax + 0x144]
test eax, eax
je 0x29a71b37
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x144]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x8c]
cmp eax, 0xa
jne 0x29a71b37
mov esi, 3
mov dword [esp + 0x18], esi
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x1c0]
test eax, eax
jne case.0x29a71b51.8
mov eax, dword [ebx + 0x1e4]
cmp eax, 8
ja case.0x29a71b51.3
jmp dword [eax*4 + 0x29a72218]
mov dword [esp + 0x2c], 0x3c
jmp case.0x29a71b51.3
mov dword [esp + 0x2c], 0x46
jmp case.0x29a71b51.3
mov dword [esp + 0x2c], 0x50
jmp case.0x29a71b51.3
mov dword [esp + 0x2c], edi
mov esi, 3
jmp 0x29a71b8e
mov esi, 4
mov dword [esp + 0x2c], 0x64
mov dword [esp + 0x18], esi
mov edi, dword [esp + 0x34]
test edi, edi
je 0x29a71bc1
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x144]
test eax, eax
jne 0x29a71bc1
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x3c]
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
mov edi, eax
call dword [edx + 0x40]
mov dword [esp + 0x44], eax
jmp 0x29a71c00
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x144]
test eax, eax
je 0x29a71bfc
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x144]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x20]
mov edi, eax
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x144]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x24]
mov dword [esp + 0x44], eax
jmp 0x29a71c00
mov edi, dword [esp + 0x4c]
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x1a8]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
sub esp, 8
mov eax, ebx
fstp qword [esp]
call fcn.29a69710
mov eax, edi
cdq
idiv esi
mov edx, dword [ebp]
mov ecx, ebp
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fdivp st(1)
fstp qword [esp + 0x1c]
call dword [edx + 0x1b0]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
sub esp, 8
mov eax, ebx
fstp qword [esp]
call fcn.29a69710
mov eax, dword [esp + 0x44]
cdq
idiv esi
mov ecx, dword [esp + 0x48]
test ecx, ecx
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
mov eax, dword [esp + 0x40]
fdivp st(1)
je 0x29a71c89
test eax, eax
jne 0x29a71c8d
mov eax, dword [ecx]
sub esp, 0x10
fstp qword [esp + 8]
fld qword [esp + 0x2c]
fstp qword [esp]
call dword [eax + 0x68]
jmp 0x29a71ca8
test eax, eax
je 0x29a71ca6
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx]
sub esp, 0x10
fstp qword [esp + 8]
fld qword [esp + 0x2c]
fstp qword [esp]
call dword [edx + 0x68]
jmp 0x29a71ca8
fstp st(0)
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x2c]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
sub esp, 8
mov eax, ebx
fstp qword [esp]
call fcn.29a69720
call fcn.29b2608c
mov edx, dword [ebp]
mov ecx, ebp
mov dword [esp + 0x54], eax
call dword [edx + 0x34]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
sub esp, 8
mov eax, ebx
fstp qword [esp]
call fcn.29a69720
call fcn.29b2608c
mov dword [esp + 0x58], eax
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0xec]
imul eax, esi
mov dword [esp + 0x14], eax
sub esp, 8
mov eax, ebx
fild dword [esp + 0x1c]
fstp qword [esp]
call fcn.29a69710
call fcn.29b2608c
mov edi, dword [esp + 0x54]
mov edx, dword [ebp]
add eax, edi
mov ecx, ebp
mov dword [esp + 0x5c], eax
call dword [edx + 0xf4]
imul eax, esi
mov dword [esp + 0x14], eax
sub esp, 8
mov eax, ebx
fild dword [esp + 0x1c]
fstp qword [esp]
call fcn.29a69710
call fcn.29b2608c
add eax, dword [esp + 0x58]
mov dword [esp + 0x60], eax
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x144]
test eax, eax
je 0x29a71d7c
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x144]
mov edx, dword [eax]
lea ecx, [esp + 0x54]
push ecx
mov ecx, eax
call dword [edx + 0x18]
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x144]
test eax, eax
je 0x29a71e45
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x144]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x9c]
cmp eax, 8
mov dword [esp + 0x14], eax
jg 0x29a72065
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x144]
test eax, eax
je 0x29a72065
lea ecx, [esp + 0x9c]
push ecx
lea edx, [esp + 0x2b0]
push edx
mov dword [esp + 0x4c], 1
call dword [sym.imp.MSVCRT.dll_wcscpy]
lea eax, [esp + 0x2b4]
push 0x29b4217c
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
mov edx, dword [esp + 0x3c]
mov ecx, dword [ebx + 0x254]
mov esi, dword [ecx]
add esp, 0x10
push 0
push edx
mov edx, dword [ebp]
push 2
lea eax, [esp + 0x2b8]
push eax
mov ecx, ebp
call dword [edx + 0x144]
mov ecx, dword [ebx + 0x254]
push eax
call dword [esi + 0x5c]
test eax, eax
lea ebx, [esp + 0x2ac]
je 0x29a71e52
push 0
call fcn.29a96480
add esp, 4
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
jmp 0x29a71e69
mov dword [esp + 0x14], 0
jmp 0x29a71db1
xor eax, eax
mov dword [esp + 0x34], 0x540be3ff
mov dword [esp + 0x38], 2
call fcn.29a96000
mov esi, dword [esp + 0x6e0]
mov eax, dword [esi + 0x254]
mov edx, dword [ebp]
mov edi, dword [eax]
push 0
push 8
push 1
lea ecx, [esp + 0xa8]
push ecx
mov ecx, ebp
call dword [edx + 0x144]
mov ecx, dword [esi + 0x254]
push eax
call dword [edi + 0x5c]
test eax, eax
je 0x29a71eb7
lea ecx, [esp + 0x9c]
call fcn.29a67a00
mov edi, eax
mov dword [esp + 0x30], 0
jmp 0x29a71ed2
xor eax, eax
lea ebx, [esp + 0x9c]
mov edi, 0x540be3ff
mov dword [esp + 0x30], 2
call fcn.29a96000
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x38], eax
jg 0x29a71eec
jl 0x29a71ee4
cmp dword [esp + 0x34], edi
jae 0x29a71eec
mov dword [esp + 0x44], 0
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x34]
mov ebx, eax
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x2c]
mov edx, dword [ebp]
mov ecx, ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
call dword [edx + 0xf4]
push eax
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0xec]
push eax
lea ecx, [esp + 0x24]
lea eax, [esp + 0x6c]
call fcn.29a9a040
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x74]
mov ebx, eax
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x6c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x44]
test eax, eax
mov dword [esp + 0x20], ebx
je 0x29a71f9b
cmp edi, 0x540be3ff
jne 0x29a71f60
cmp dword [esp + 0x30], 2
je 0x29a71fe1
mov edi, dword [esp + 0x14]
fild dword [esp + 0x18]
sub esp, 8
xor ecx, ecx
cmp edi, 1
fstp qword [esp]
sete cl
lea edx, [esp + 0x24]
lea eax, [esp + 0x6c]
push ecx
push 0
push 1
push edx
push eax
lea ecx, [esp + 0xb8]
push ecx
call fcn.29a6c670
lea ebx, [esp + 0x2ac]
jmp 0x29a71fda
cmp dword [esp + 0x34], 0x540be3ff
jne 0x29a71fac
cmp dword [esp + 0x38], 2
je 0x29a71fe1
fild dword [esp + 0x18]
sub esp, 8
lea edx, [esp + 0x24]
lea eax, [esp + 0x6c]
fstp qword [esp]
push 0
push 1
push 1
push edx
push eax
lea ecx, [esp + 0x2c8]
push ecx
call fcn.29a6c670
lea ebx, [esp + 0x9c]
xor eax, eax
call fcn.29a96000
mov eax, dword [esp + 0x48]
test eax, eax
je 0x29a71ff7
call fcn.29a9c6b0
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x29a72004
mov edx, dword [ecx]
call dword [edx + 8]
mov esi, dword [esp + 0x4c]
test esi, esi
je 0x29a72038
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x144]
test eax, eax
je 0x29a72038
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x144]
mov edx, dword [eax]
push esi
mov ecx, eax
call dword [edx + 0xc0]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esp + 0x50]
test eax, eax
je 0x29a7204a
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov ecx, dword [esp + 0x6d0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x6cc
ret 8
mov edx, dword [ebp]
mov ecx, ebp
xor esi, esi
call dword [edx + 0x144]
test eax, eax
jne 0x29a7213a
mov edi, dword [esp + 0x34]
test edi, edi
je 0x29a7213a
lea eax, [esp + 0x74]
call fcn.29a99ff0
lea eax, [esp + 0x54]
lea ecx, [esp + 0x64]
call fcn.29a9a090
xor edx, edx
mov dword [esp + 0x1c], 0x29b4b5a0
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x6d8], 1
mov dword [esp + 0x78], eax
push 0xffffff
lea eax, [esp + 0x78]
mov dword [esp + 0x94], 3
call fcn.29a9a030
push edx
push 0x10000000
push 2
push 3
push 0xc0000000
lea ecx, [esp + 0xb0]
push ecx
lea ecx, [esp + 0x34]
call fcn.29aa0be0
cmp eax, 1
jne 0x29a72127
mov ecx, dword [esp + 0x48]
mov edx, dword [edi]
push esi
push esi
lea eax, [esp + 0x6c]
push eax
push ecx
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, edi
call dword [edx + 0x14]
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.29aa0c20
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6d8], 0
call fcn.29aa0b30
jmp 0x29a72185
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x144]
test eax, eax
je 0x29a71fd3
mov eax, dword [ebx + 0x254]
test eax, eax
je 0x29a71fd3
mov ecx, dword [esp + 0x2c]
mov esi, dword [eax]
mov eax, dword [ebp]
push 0
push ecx
push 2
lea edx, [esp + 0xa8]
push edx
mov ecx, ebp
call dword [eax + 0x144]
mov ecx, dword [ebx + 0x254]
push eax
call dword [esi + 0x5c]
mov esi, eax
cmp esi, 1
jne 0x29a71fd3
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x34]
mov esi, eax
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x2c]
mov edx, dword [ebp]
mov ecx, ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
call dword [edx + 0xf4]
push eax
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0xec]
push eax
lea ecx, [esp + 0x24]
lea eax, [esp + 0x6c]
call fcn.29a9a040
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x74]
mov esi, eax
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x6c]
fild dword [esp + 0x18]
sub esp, 8
lea ecx, [esp + 0x24]
fstp qword [esp]
push 0
push 1
push 1
push ecx
lea edx, [esp + 0x7c]
mov dword [esp + 0x34], eax
push edx
lea eax, [esp + 0xb8]
mov dword [esp + 0x3c], esi
push eax
mov esi, ebx
call fcn.29a6c670
jmp 0x29a71fe1