Function at 0x4166a0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x456c23
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x254
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [0x471df4]
xor ebp, ebp
mov dword [esp + 0x26c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x278]
mov bl, 4
push 0x46ae38
push eax
mov byte [esp + 0x274], bl
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebp
call fcn.0043af00
mov esi, eax
add esp, 8
cmp esi, ebp
mov dword [esp + 0x2c], esi
je 0x416b71
push esi
lea ecx, [esp + 0x164]
push 0x103
push ecx
call fcn.0043ae30
add esp, 0xc
test eax, eax
je 0x416b68
mov esi, dword [esp + 0x27c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x160]
lea ecx, [esp + 0x10]
push edx
call fcn.0044a511
lea eax, [esp + 0x10]
push eax
call fcn.004136a0
add esp, 4
lea ecx, [esp + 0x10]
push str._VERSION_
call fcn.00449464
cmp eax, 0xffffffff
je 0x416782
mov eax, 1
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
jmp 0x4167cc
push 0x46bdc4
lea ecx, [esp + 0x14]
call fcn.00449464
cmp eax, 0xffffffff
je 0x4167b8
push 0x46bdc0
lea ecx, [esp + 0x14]
call fcn.00449464
cmp eax, 0xffffffff
je 0x4167b8
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4167b8
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4167cc
mov eax, dword [esp + 0x24]
test eax, eax
je 0x416b64
push str.CATALOGFILE
lea ecx, [esp + 0x14]
call fcn.00449464
cmp eax, 0xffffffff
je 0x416b39
push 0x3d
lea ecx, [esp + 0x14]
call fcn.0044a84f
cmp eax, 0xffffffff
je 0x416b39
inc eax
lea ecx, [esp + 0x10]
push eax
push 0
call fcn.004490eb
lea ecx, [esp + 0x10]
push ecx
call fcn.004136a0
mov eax, dword [esp + 0x278]
add esp, 4
test eax, eax
je 0x4168de
lea edx, [esp + 0x278]
lea ecx, [esp + 0x14]
push edx
call fcn.0044a4c1
push 0x5c
lea ecx, [esp + 0x18]
call fcn.00449442
cmp eax, 0xffffffff
je 0x416b31
push eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x1c]
call fcn.004493ca
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x270], 5
call fcn.0044a4c1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x26c], bl
call fcn.0044a3d4
lea ecx, [esp + 0x14]
push 0x46a404
lea edx, [esp + 0x34]
push ecx
push edx
call fcn.0044a61d
lea ecx, [esp + 0x10]
lea edx, [esp + 0x4c]
push ecx
push eax
push edx
mov byte [esp + 0x278], 6
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x270], 7
call fcn.0044a4c1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x26c], 6
call fcn.0044a3d4
lea ecx, [esp + 0x30]
mov byte [esp + 0x26c], bl
call fcn.0044a3d4
lea eax, [esp + 0x14]
jmp 0x416b29
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call fcn.0044a4c1
lea edx, [esp + 0x278]
lea ecx, [esp + 0x1c]
push edx
call fcn.0044a4c1
lea ecx, [esp + 0x1c]
call fcn.0044a88a
push str..CAT
push 0x46ad80
lea ecx, [esp + 0x24]
call fcn.00449180
push 0x5c
lea ecx, [esp + 0x20]
call fcn.00449442
inc eax
lea ecx, [esp + 0x1c]
push eax
push 0
call fcn.004490eb
lea eax, [esp + 0x18]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.CAT_CATALOG
call fcn.0044a442
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x54], esp
push edx
mov byte [esp + 0x27c], 8
call fcn.0044a149
push ecx
lea eax, [esp + 0x288]
mov ecx, esp
mov dword [esp + 0x60], esp
push eax
mov byte [esp + 0x280], 9
call fcn.0044a149
mov ecx, edi
mov byte [esp + 0x27c], bl
call fcn.00416e70
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.00449c44
mov eax, dword [edi + 0x148]
test eax, eax
je 0x416b31
lea edx, [esp + 0x5c]
push 0x104
push edx
call ebp
lea eax, [esp + 0x18]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x58], esp
push str.CAT_CATALOG
call fcn.0044a442
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x54], esp
push edx
mov byte [esp + 0x27c], 0xa
call fcn.0044a149
push ecx
lea eax, [esp + 0x288]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
mov byte [esp + 0x280], 0xb
call fcn.0044a149
mov ecx, edi
mov byte [esp + 0x27c], bl
call fcn.00416e70
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.00449c44
lea edx, [esp + 0x5c]
lea ecx, [esp + 0x54]
push edx
call fcn.0044a442
push str.CatRootF750E6C3_38EE_11D1_85E5_00C04FC295EE_
push eax
lea eax, [esp + 0x4c]
mov byte [esp + 0x274], 0xc
push eax
call fcn.0044a61d
lea ecx, [esp + 0x14]
lea edx, [esp + 0x58]
push ecx
push eax
push edx
mov byte [esp + 0x278], 0xd
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x270], 0xe
call fcn.0044a4c1
lea ecx, [esp + 0x58]
mov byte [esp + 0x26c], 0xd
call fcn.0044a3d4
lea ecx, [esp + 0x44]
mov byte [esp + 0x26c], 0xc
call fcn.0044a3d4
lea ecx, [esp + 0x54]
mov byte [esp + 0x26c], bl
call fcn.0044a3d4
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call fcn.00449c44
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x44]
call fcn.0044a442
push str.CatRootF750E6C3_38EE_11D1_85E5_00C04FC295EE_
lea edx, [esp + 0x3c]
push eax
mov byte [esp + 0x274], 0xf
push edx
call fcn.0044a61d
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x34]
push ecx
push eax
push edx
mov byte [esp + 0x278], 0x10
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x270], 0x11
call fcn.0044a4c1
lea ecx, [esp + 0x34]
mov byte [esp + 0x26c], 0x10
call fcn.0044a3d4
lea ecx, [esp + 0x38]
mov byte [esp + 0x26c], 0xf
call fcn.0044a3d4
lea ecx, [esp + 0x40]
mov byte [esp + 0x26c], bl
call fcn.0044a3d4
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.00449c44
mov dword [esp + 0x20], 1
lea ecx, [esp + 0x10]
call fcn.0044a35f
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x160]
push ecx
push 0x103
push edx
call fcn.0043ae30
add esp, 0xc
test eax, eax
jne 0x416742
mov esi, dword [esp + 0x2c]
push esi
call fcn.0043ad20
add esp, 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x26c], 3
call fcn.0044a3d4
lea ecx, [esp + 0x14]
mov byte [esp + 0x26c], 2
call fcn.0044a3d4
lea ecx, [esp + 0x18]
mov byte [esp + 0x26c], 1
call fcn.0044a3d4
lea ecx, [esp + 0x10]
mov byte [esp + 0x26c], 0
call fcn.0044a3d4
lea ecx, [esp + 0x278]
mov dword [esp + 0x26c], 0xffffffff
call fcn.0044a3d4
mov ecx, dword [esp + 0x264]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x260
ret 0xc