Function at 0x447190
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d14da
push eax
mov dword fs:[0], esp
sub esp, 0x278
push ebx
push ebp
push esi
mov esi, dword [esp + 0x294]
cmp word [esi], 0x5c
push edi
jne 0x4475fa
mov edi, dword [esp + 0x29c]
cmp word [edi], 0x19
jb 0x4471fa
push 0x19
push 0x4e61b8
push esi
call fcn.004a04a5
add esp, 0xc
test eax, eax
jne 0x4471fa
cmp word [esi + 0x32], 0x3b
lea ebx, [eax + 0x19]
jne 0x4471ee
lea ebx, [eax + 0x2d]
push edi
push esi
mov edx, 0x4e61f0
call fcn.00446ca0
cmp word [edi], 4
jb 0x447228
push 4
push 0x4e618c
push esi
call fcn.004a0f54
add esp, 0xc
test eax, eax
jne 0x447228
push edi
push esi
mov edx, 0x4d9064
lea ebx, [eax + 4]
call fcn.00446ca0
jmp 0x4475fa
cmp word [edi], 0xc
jbe 0x447256
push 0xc
push str.DeviceMup_
push esi
call fcn.004a04a5
add esp, 0xc
test eax, eax
jne 0x447256
push edi
push esi
mov edx, 0x4e61f0
lea ebx, [eax + 0xc]
call fcn.00446ca0
jmp 0x4475fa
cmp byte [0x4febd0], 0
je 0x447289
cmp word [esi], 0x5c
jne 0x4475fa
cmp word [esi + 2], 0x5c
je 0x4475fa
call dword [sym.imp.USER32.dll_GetActiveWindow]
push 0
push edi
push esi
push eax
call fcn.00446db0
jmp 0x4475fa
cmp word [edi], 0xc
mov ebx, 1
jbe 0x447313
push 0xc
push 0x4e6218
push esi
call fcn.004a04a5
add esp, 0xc
test eax, eax
jne 0x447313
mov eax, dword [0x4ffa18]
test eax, eax
jne 0x4472f8
push 0x104
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [esp + 0x82]
push 0x5c
push ecx
call fcn.0049e9fa
add esp, 8
xor edx, edx
mov word [eax], dx
lea eax, [esp + 0x7c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4472e2
sub eax, edx
sar eax, 1
add eax, ebx
mov dword [0x4ffa18], eax
cmp eax, 0xc
ja 0x447313
push edi
push esi
mov edx, 0x4ff810
mov ebx, 0xc
call fcn.00446ca0
jmp 0x4475fa
test byte [0x500344], bl
jne 0x447339
or dword [0x500344], ebx
push 0x50032c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x4d3de0
call fcn.0049e958
add esp, 4
push 0x50032c
mov dword [esp + 0x20], 0x50032c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x290], 0
test byte [0x500344], 2
jne 0x447388
or dword [0x500344], 2
mov byte [esp + 0x290], bl
call fcn.0044afc0
push 0x4d3d90
call fcn.0049e958
add esp, 4
mov byte [esp + 0x290], 0
cmp byte [0x4febd1], 0
je 0x4473ac
mov eax, dword [0x500138]
mov ecx, dword [0x500120]
mov edx, dword [eax]
push eax
push ecx
push edx
push ecx
lea eax, [esp + 0x24]
push eax
call fcn.0044a620
mov eax, dword [esp + 0x2a0]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ebx, dword [esp + 0x2a4]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ebx
call fcn.0044a6f0
mov eax, dword [esp + 0x14]
mov ebp, dword [0x500138]
test eax, eax
je 0x4473f0
cmp eax, dword [0x500120]
je 0x4473f5
call fcn.0049f380
cmp dword [esp + 0x18], ebp
jne 0x4474a8
lea eax, [esp + 0x5c]
push eax
call fcn.0044aab0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x290], 2
push ecx
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], ebx
call fcn.0044ab20
lea ebx, [esp + 0x30]
lea edi, [esp + 0x24]
mov byte [esp + 0x290], 3
call fcn.0044a530
mov ecx, dword [eax]
mov edx, dword [eax + 4]
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov byte [esp + 0x294], 2
call fcn.0044a200
lea esi, [esp + 0x5c]
mov byte [esp + 0x290], 4
call fcn.0044add0
mov byte [esp + 0x290], 0
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.0049e96f
add esp, 4
lea esi, [esp + 0x14]
call fcn.0044a770
mov edx, dword [esp + 0x2a0]
add eax, 0xc
push eax
mov eax, dword [esp + 0x2a8]
push edx
push eax
call fcn.00450730
lea esi, [esp + 0x14]
call fcn.0044a770
mov ecx, dword [eax + 0x24]
mov ecx, dword [ecx]
mov esi, dword [eax + 0xc]
add eax, 0xc
mov ebp, ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x44751f
call fcn.0049f380
xor eax, eax
mov ebx, dword [esp + 0x18]
cmp ebx, dword [eax + 0x18]
jne 0x4474e3
call fcn.0049f380
mov edi, dword [ebx + 0x30]
mov eax, dword [ebx + 0x18]
test esi, esi
je 0x4474f1
cmp esi, eax
je 0x4474f6
call fcn.0049f380
cmp ebp, edi
je 0x4475ef
test esi, esi
jne 0x447523
call fcn.0049f380
xor eax, eax
cmp ebp, dword [eax + 0x18]
jne 0x447513
call fcn.0049f380
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x447527
mov eax, dword [eax + 4]
jmp 0x447529
mov eax, dword [eax]
jmp 0x4474d5
mov eax, dword [esi]
jmp 0x447509
xor eax, eax
test eax, eax
je 0x447530
sub eax, 2
shr eax, 1
mov ebx, eax
test esi, esi
jne 0x4475a2
call fcn.0049f380
cmp ebp, dword [esi + 0x18]
jne 0x447547
call fcn.0049f380
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x447553
add eax, 8
jne 0x447558
mov eax, 0x4d9064
mov ebp, dword [esp + 0x29c]
movzx edx, word [ebp]
cmp ebx, edx
ja 0x44758c
mov edi, dword [esp + 0x298]
push ebx
push edi
push eax
call fcn.004a04a5
add esp, 0xc
test eax, eax
jne 0x44758c
cmp word [edi + ebx*2], 0x5c
je 0x4475a6
movzx eax, word [ebp]
cmp ebx, eax
je 0x4475a6
lea esi, [esp + 0x1c]
call fcn.0044aeb0
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
jmp 0x4474c6
mov esi, dword [esi]
jmp 0x44753d
movzx ecx, word [ebp]
lea esi, [ebx + 4]
cmp ecx, esi
jb 0x4475ca
push 4
lea edx, [edi + ebx*2]
push 0x4e618c
push edx
call fcn.004a04a5
add esp, 0xc
test eax, eax
jne 0x4475ca
mov ebx, esi
lea esi, [esp + 0x1c]
call fcn.0044a400
add eax, 4
mov eax, dword [eax]
test eax, eax
je 0x4475e3
add eax, 8
mov edx, eax
jne 0x4475e8
mov edx, 0x4d9064
push ebp
push edi
call fcn.00446ca0
push 0x50032c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x288]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x284
ret 0x10