Function at 0x466fc0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x5fe940]
push esi
mov esi, ecx
mov dword [esp + 0x210], eax
mov eax, dword [esi + 0x4514]
push edi
xor edi, edi
cmp eax, edi
je 0x466ff3
push eax
mov ecx, 0x879bc8
call fcn.0055c7f0
mov dword [esi + 0x4514], edi
mov eax, dword [esi + 0x4518]
cmp eax, edi
je 0x46700e
push eax
mov ecx, 0x879bc8
call fcn.0055c7f0
mov dword [esi + 0x4518], edi
mov eax, dword [esi + 0x451c]
cmp eax, edi
je 0x467029
push eax
mov ecx, 0x879bc8
call fcn.0055c7f0
mov dword [esi + 0x451c], edi
mov eax, dword [esi + 0x4520]
cmp eax, edi
je 0x467044
push eax
mov ecx, 0x879bc8
call fcn.0055c7f0
mov dword [esi + 0x4520], edi
mov eax, dword [esi + 0x4524]
cmp eax, edi
je 0x46705f
push eax
mov ecx, 0x879bc8
call fcn.0055c7f0
mov dword [esi + 0x4524], edi
mov eax, dword [esi + 0x4528]
cmp eax, edi
je 0x46707a
push eax
mov ecx, 0x879bc8
call fcn.0055c7f0
mov dword [esi + 0x4528], edi
mov eax, dword [esi + 0x452c]
cmp eax, edi
je 0x467095
push eax
mov ecx, 0x879bc8
call fcn.0055c7f0
mov dword [esi + 0x452c], edi
mov eax, dword [esi + 0x4530]
cmp eax, edi
je 0x4670b0
push eax
mov ecx, 0x879bc8
call fcn.0055c7f0
mov dword [esi + 0x4530], edi
mov ecx, dword [esi + 0x108]
mov eax, dword [ecx]
push ebx
push ebp
push 0xc435
call dword [eax + 0xd4]
mov ebx, eax
mov eax, dword [ebx + 0x184]
or ebp, 0xffffffff
cmp eax, ebp
mov dword [esp + 0x18], ebx
je 0x4670e4
mov ecx, dword [ebx + 0x190]
mov dword [esp + 0x14], ecx
jmp 0x4670ff
mov ecx, dword [esi + 0x1bc]
imul ecx, ecx, 0x340
add ecx, 0x67b2e8
call fcn.00409160
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 0x1bc]
imul ecx, ecx, 0x340
add ecx, 0x67b2e8
call fcn.00409160
mov ecx, dword [esi + 0x1bc]
imul ecx, ecx, 0x340
mov edi, eax
mov eax, dword [ebx + 0x180]
add ecx, 0x67b1d8
cmp eax, ebp
jne 0x46714b
call fcn.00409160
mov ecx, dword [esi + 0x1bc]
imul ecx, ecx, 0x340
add ecx, 0x67b1d8
call fcn.00409160
mov ecx, dword [esi + 0x1bc]
imul ecx, ecx, 0x340
mov ebp, eax
mov eax, dword [ebx + 0x188]
add ecx, 0x67b3f8
cmp eax, 0xffffffff
je 0x46717b
mov edx, dword [ebx + 0x194]
mov dword [esp + 0x10], edx
jmp 0x467196
call fcn.00409160
mov ecx, dword [esi + 0x1bc]
imul ecx, ecx, 0x340
mov dword [esp + 0x10], eax
add ecx, 0x67b3f8
call fcn.00409160
mov ebx, eax
lea eax, [esp + 0x1c]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push str.equip
call fcn.00436a80
add esp, 4
test ebp, ebp
je 0x4671e8
mov ecx, dword [0x6508a4]
imul ebp, ebp, 0x4ac
push 0
push 3
lea edx, [ecx + ebp + 0x32c]
push 1
push edx
mov ecx, 0x879bc8
call fcn.0055cf20
mov dword [esi + 0x4524], eax
test edi, edi
je 0x467215
mov eax, dword [0x6508a4]
imul edi, edi, 0x4ac
push 0
push 3
lea ecx, [edi + eax + 0x32c]
push 1
push ecx
mov ecx, 0x879bc8
call fcn.0055cf20
mov dword [esi + 0x4528], eax
mov edi, dword [esp + 0x14]
test edi, edi
je 0x46728d
mov edx, dword [0x6508a4]
imul edi, edi, 0x4ac
mov cl, byte [edi + edx + 0x3ac]
test cl, cl
lea eax, [edi + edx + 0x3ac]
je 0x46728d
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 0x184], 0xffffffff
jne 0x46729b
mov edx, dword [esi + 0x1bc]
imul edx, edx, 0x340
add edx, 0x67b2e8
push edx
mov ecx, esi
call fcn.00465b90
test al, al
push 0
push 3
push 1
je 0x46727b
mov eax, dword [0x6508a4]
lea ecx, [edi + eax + 0x3ac]
push ecx
jmp 0x4672a2
mov edx, dword [esi + 0x1bc]
shl edx, 8
add edx, str.carrot_armor_default.spr
push edx
jmp 0x4672a2
mov eax, dword [esi + 0x1bc]
shl eax, 8
add eax, str.carrot_armor_default.spr
push 0
push 3
push 1
push eax
mov ecx, 0x879bc8
call fcn.0055cf20
test ebx, ebx
mov dword [esi + 0x4518], eax
je 0x4672e0
mov ecx, dword [0x6508a4]
imul ebx, ebx, 0x4ac
push 0
push 3
lea edx, [ebx + ecx + 0x32c]
push 1
push edx
mov ecx, 0x879bc8
call fcn.0055cf20
mov dword [esi + 0x452c], eax
mov eax, dword [esp + 0x10]
test eax, eax
pop ebp
pop ebx
je 0x467319
mov ecx, dword [0x6508a4]
imul eax, eax, 0x4ac
lea eax, [eax + ecx + 0x3ac]
cmp byte [eax], 0
je 0x467319
push 0
push 3
push 1
push eax
mov ecx, 0x879bc8
call fcn.0055cf20
mov dword [esi + 0x451c], eax
lea edx, [esp + 0x14]
push edx
call fcn.00436a80
mov ecx, dword [esi + 0x108]
add esp, 4
test ecx, ecx
pop edi
pop esi
je 0x46733f
mov eax, dword [ecx]
push 0xc670
call dword [eax + 0xd4]
mov ecx, dword [esp + 0x20c]
call fcn.005900c7
add esp, 0x210
ret