Function at 0x471100
Capabilities:
Get common file path

Disassembly:
sub esp, 0x32c
mov eax, dword [0x4951c0]
xor eax, esp
mov dword [esp + 0x324], eax
mov eax, dword [0x49ab6c]
push ebx
push ebp
mov ebp, dword [esp + 0x338]
push esi
push edi
xor ebx, ebx
push ebx
push ebp
mov dword [esp + 0x2c], eax
call fcn.00408562
add esp, 8
test eax, eax
je 0x4711c2
lea edx, [esp + 0x28]
mov eax, ebp
sub edx, ebp
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x471144
lea ecx, [esp + 0x28]
push ecx
call fcn.00474a50
add esp, 4
test eax, eax
jne 0x47119d
cmp dword [0x58fe3c], ebx
je 0x471171
mov eax, 1
jmp 0x4714cb
mov eax, dword [0x49a31c]
lea edx, [esp + 0x28]
push edx
push 0x48ae98
push eax
call fcn.004081b3
mov ecx, dword [0x49a31c]
add esp, 0xc
push ecx
push 0x48aeb4
call fcn.00458fe0
add esp, 8
mov edi, 1
mov dword [0x58f968], edi
xor eax, eax
lea ebx, [ebx]
mov cl, byte [esp + eax + 0x28]
mov byte [eax + 0x49a538], cl
add eax, edi
cmp cl, bl
jne 0x4711b0
jmp 0x471229
cmp byte [ebp + 1], 0x3a
je 0x471224
lea edx, [esp + 0x28]
push edx
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp byte [esp + 0x2b], bl
je 0x4711f4
lea edi, [esp + 0x28]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4711e3
mov ax, word [0x48aec4]
mov word [edi], ax
mov eax, ebp
mov edx, ebp
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4711f8
lea edi, [esp + 0x28]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x471206
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [0x58f968], ebx
mov edi, 1
push 0x104
lea ecx, [esp + 0x12c]
push ecx
push 0xffffffffffffffff
push ebp
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x49a530
push 0x47d070
push edi
push ebx
push 0x47d010
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
je 0x471263
xor eax, eax
jmp 0x4714cb
mov eax, dword [0x49a530]
mov edx, dword [eax]
push 0x49a844
push 0x47d020
push eax
mov eax, dword [edx]
call eax
test eax, eax
jne 0x47125c
mov eax, dword [0x49a530]
mov ecx, dword [eax]
mov edx, dword [ecx]
push 0x49a94c
push 0x47d030
push eax
call edx
test eax, eax
jne 0x47125c
mov eax, dword [0x49a530]
mov ecx, dword [eax]
mov edx, dword [ecx]
push 0x49a950
push 0x47d050
push eax
call edx
test eax, eax
jne 0x47125c
mov eax, dword [0x49a530]
mov ecx, dword [eax]
push ebx
lea edx, [esp + 0x12c]
push edx
push eax
mov eax, dword [ecx + 0x34]
call eax
mov eax, dword [0x49a950]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
push 0x40000000
push eax
call edx
mov edx, dword [0x49ab6c]
mov eax, dword [0x49a950]
mov edx, dword [edx + 0x10]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x7c]
call eax
mov edx, dword [0x49ab6c]
mov eax, dword [0x49a950]
mov edx, dword [edx + 0x10]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x74]
call eax
mov edx, dword [0x4967f0]
mov eax, dword [0x49a950]
mov ecx, dword [eax]
push edx
mov edx, dword [0x4965ec]
push edx
push ebx
push ebx
push eax
mov eax, dword [ecx + 0x9c]
call eax
mov eax, dword [0x49a844]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push eax
call edx
mov eax, dword [0x54ad08]
mov dword [0x58f960], edi
mov dword [0x58f964], edi
cmp eax, 0x64
jne 0x471351
mov esi, 0xffffd8f1
jmp 0x471356
imul eax, eax, 0xffffffe7
mov esi, eax
mov eax, dword [0x49a844]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x47d040
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jne 0x471389
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push esi
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop
mov eax, dword [esp + 0x24]
push eax
call fcn.004013f0
cmp dword [0x58faec], ebx
je 0x4713ab
cmp dword [esp + 0x344], ebx
jne 0x47141e
mov eax, dword [0x58faf0]
cmp eax, ebx
je 0x4713bd
cmp dword [esp + 0x344], ebx
jne 0x471423
cmp dword [0x58fe6c], ebx
jne 0x471423
mov eax, dword [0x49a94c]
mov ecx, dword [eax]
push 0xa
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
test eax, eax
jne 0x471415
mov edx, dword [esp + 0x1c]
mov eax, dword [0x49a94c]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0x30]
call eax
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x47141e
cmp eax, 3
je 0x47141e
cmp eax, 2
je 0x47141e
push 2
call esi
jmp 0x471390
mov eax, dword [0x58faf0]
cmp dword [0x58faec], ebx
je 0x471433
mov dword [0x54ad14], edi
jmp 0x47143f
neg eax
sbb eax, eax
neg eax
dec eax
mov dword [0x54ad14], eax
mov eax, dword [0x49a844]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
push eax
mov dword [0x58faf0], ebx
call edx
mov eax, dword [0x49a950]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x4c]
push ebx
push eax
call edx
mov eax, dword [0x49a950]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x74]
push ebx
push eax
call edx
mov eax, dword [0x49a950]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [0x49a530]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [0x49a844]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [0x49a94c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [0x58f964], ebx
mov dword [0x58f960], ebx
cmp dword [0x58f968], ebx
je 0x4714c9
push 0x49a538
call fcn.004087dd
add esp, 4
mov dword [0x58f968], ebx
mov eax, edi
mov ecx, dword [esp + 0x334]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00407f40
add esp, 0x32c
ret 8