Function at 0x51eed0
Capabilities:
Get common file path

Disassembly:
sub esp, 0xb38
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0xb34], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0xb48]
xor ebx, ebx
xor esi, esi
cmp edi, ebx
je 0x51ef30
cmp byte [edi], bl
je 0x51ef30
push edi
call fcn.004ec720
add esp, 4
test eax, eax
je 0x51ef30
push 1
push ebx
push 0x64e8f0
push edi
call fcn.005042c0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb34]
xor ecx, esp
call fcn.005dfbbe
add esp, 0xb38
ret
push 0x103
lea eax, [esp + 0x19]
push ebx
push eax
mov byte [esp + 0x20], bl
call fcn.005dfd60
push 0x103
lea ecx, [esp + 0x539]
push ebx
push ecx
mov byte [esp + 0x540], bl
call fcn.005dfd60
push 0x103
lea edx, [esp + 0x33d]
push ebx
push edx
mov byte [esp + 0x344], bl
call fcn.005dfd60
push 0x103
lea eax, [esp + 0x245]
push ebx
push eax
mov byte [esp + 0x24c], bl
call fcn.005dfd60
push 0x103
lea ecx, [esp + 0x765]
push ebx
push ecx
mov byte [esp + 0x76c], bl
call fcn.005dfd60
push 0x103
lea edx, [esp + 0x979]
push ebx
push edx
mov byte [esp + 0x980], bl
call fcn.005dfd60
add esp, 0x48
push 0x103
lea eax, [esp + 0x429]
push ebx
push eax
mov byte [esp + 0x430], bl
call fcn.005dfd60
push ebx
lea ecx, [esp + 0x538]
push ebx
push ecx
call fcn.005098d0
add esp, 0x18
cmp byte [esp + 0x528], bl
je 0x51f018
push 1
push ebx
lea edx, [esp + 0x530]
push 0x64e8f0
push edx
call fcn.005042c0
add esp, 0x10
mov esi, eax
push ebp
lea eax, [esp + 0x220]
push eax
call fcn.004ef9d0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp eax, ebx
jne 0x51f163
lea ecx, [esp + 0x220]
push ecx
call fcn.004efb60
test eax, eax
jne 0x51f163
push ebx
push ebx
lea edx, [esp + 0x73c]
push edx
push ebx
push ebx
push ebx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x958]
push ecx
push 0x64d3e8
call fcn.0050f490
test eax, eax
je 0x51f271
push 0x103
lea edx, [esp + 0x121]
push ebx
push edx
mov byte [esp + 0x128], bl
call fcn.005dfd60
lea eax, [esp + 0x740]
push eax
lea ecx, [esp + 0x12c]
push 0x64d530
push ecx
mov dword [esp + 0x28], 0x104
call fcn.005dfb23
add esp, 0x18
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x42c]
push eax
push 0x6486bc
lea ecx, [esp + 0x128]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004d5770
cmp byte [esp + 0x428], bl
je 0x51f271
lea edx, [esp + 0x428]
push edx
call fcn.004ec720
add esp, 4
test eax, eax
je 0x51f271
lea eax, [esp + 0x428]
push eax
lea ecx, [esp + 0x120]
push ecx
call edi
lea edx, [esp + 0x11c]
push edx
call fcn.004e24e0
add esp, 4
push str.eupdate.ini
lea eax, [esp + 0x120]
push eax
call ebp
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x12c]
push ebx
push ecx
call fcn.004e8950
add esp, 0x18
test eax, eax
jne 0x51f271
lea edx, [esp + 0x428]
push edx
lea eax, [esp + 0x224]
push eax
call edi
cmp byte [esp + 0x220], bl
je 0x51f271
push 1
push ebx
lea ecx, [esp + 0x228]
push 0x64e8f0
push ecx
call fcn.005042c0
add esp, 0x10
lea edx, [esp + 0x220]
or esi, eax
push edx
lea eax, [esp + 0x1c]
push eax
call edi
lea ecx, [esp + 0x18]
push ecx
call fcn.004e24e0
add esp, 4
push str.vista
lea edx, [esp + 0x1c]
push edx
call ebp
lea eax, [esp + 0x18]
push ebx
push eax
call fcn.004e8c10
add esp, 8
test eax, eax
je 0x51f1db
push 1
push ebx
lea ecx, [esp + 0x20]
push 0x64e8f0
push ecx
call fcn.005042c0
add esp, 0x10
or esi, eax
push 0x103
lea edx, [esp + 0x121]
push ebx
push edx
mov byte [esp + 0x128], bl
call fcn.005dfd60
add esp, 0xc
push ebx
lea eax, [esp + 0x120]
push eax
push 0x60c810
call fcn.0051dd80
test eax, eax
je 0x51f271
cmp byte [esp + 0x11c], bl
je 0x51f271
push 1
push ebx
lea ecx, [esp + 0x124]
push 0x64e8f0
push ecx
call fcn.005042c0
add esp, 0x10
lea edx, [esp + 0x11c]
or esi, eax
push edx
lea eax, [esp + 0x1c]
push eax
call edi
lea ecx, [esp + 0x18]
push ecx
call fcn.004e24e0
add esp, 4
push str.avcback
lea edx, [esp + 0x1c]
push edx
call ebp
push 1
push ebx
lea eax, [esp + 0x20]
push 0x64e8f0
push eax
call fcn.005042c0
add esp, 0x10
or esi, eax
lea ecx, [esp + 0x324]
push ecx
call fcn.004eefa0
add esp, 4
test eax, eax
je 0x51f352
cmp byte [esp + 0x324], bl
je 0x51f352
push 1
push ebx
lea edx, [esp + 0x32c]
push 0x64e8f0
push edx
call fcn.005042c0
add esp, 0x10
or esi, eax
lea eax, [esp + 0x324]
push eax
lea ecx, [esp + 0x1c]
push ecx
call edi
lea edx, [esp + 0x18]
push edx
call fcn.004e24e0
add esp, 4
push str.vista
lea eax, [esp + 0x1c]
push eax
call ebp
lea ecx, [esp + 0x18]
push ebx
push ecx
call fcn.004e8c10
add esp, 8
test eax, eax
je 0x51f301
push 1
push ebx
lea edx, [esp + 0x20]
push 0x64e8f0
push edx
call fcn.005042c0
add esp, 0x10
or esi, eax
lea eax, [esp + 0x324]
push eax
lea ecx, [esp + 0x1c]
push ecx
call edi
lea edx, [esp + 0x18]
push edx
call fcn.004e24e0
add esp, 4
push str.mwav
lea eax, [esp + 0x1c]
push eax
call ebp
lea ecx, [esp + 0x18]
push ebx
push ecx
call fcn.004e8c10
add esp, 8
test eax, eax
je 0x51f352
push 1
push ebx
lea edx, [esp + 0x20]
push 0x64e8f0
push edx
call fcn.005042c0
add esp, 0x10
or esi, eax
push 0x103
lea eax, [esp + 0xa45]
push ebx
push eax
mov byte [esp + 0xa4c], bl
call fcn.005dfd60
push 0x103
lea ecx, [esp + 0x849]
push ebx
push ecx
mov byte [esp + 0x850], bl
call fcn.005dfd60
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x870]
push edx
lea eax, [esp + 0xa7c]
push eax
call fcn.00512330
add esp, 0x40
lea ecx, [esp + 0x838]
push ecx
lea edx, [esp + 0x1c]
push edx
call edi
cmp byte [esp + 0x18], bl
je 0x51f3de
lea eax, [esp + 0x18]
nop
inc eax
cmp byte [eax], bl
jne 0x51f3c0
lea ecx, [esp + 0x18]
sub eax, ecx
je 0x51f3de
cmp byte [esp + eax + 0x17], 0x5c
je 0x51f3de
push 0x66da34
mov edx, ecx
push edx
call ebp
push str.MicroWorld_agent
lea eax, [esp + 0x1c]
push eax
call ebp
lea ecx, [esp + 0x18]
push ebx
push ecx
call fcn.004e8c10
add esp, 8
pop ebp
test eax, eax
je 0x51f414
push 1
push ebx
lea edx, [esp + 0x1c]
push 0x64e8f0
push edx
call fcn.005042c0
add esp, 0x10
or esi, eax
push 0x103
lea eax, [esp + 0x631]
push ebx
push eax
mov byte [esp + 0x638], bl
call fcn.005dfd60
add esp, 0xc
push 0x104
lea ecx, [esp + 0x630]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x62c]
push ebx
push edx
call fcn.004e8c10
add esp, 8
test eax, eax
je 0x51f473
push 1
push ebx
lea eax, [esp + 0x634]
push 0x64e8f0
push eax
call fcn.005042c0
add esp, 0x10
or esi, eax
mov ecx, dword [esp + 0xb40]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.005dfbbe
add esp, 0xb38
ret