Function at 0x4601d0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cde98
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x52bdd0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
movzx eax, word [esi + 0x520]
push eax
push dword [0x52ec00]
call dword [sym.imp.Y747CMNFNC.dll_YCFOcrunmd]
mov ebx, dword [sym.imp.Y747CMNFNC.dll_YCFUcndchk]
push 0x23
push dword [0x52ec00]
movzx edi, ax
call ebx
add esp, 0x10
test eax, eax
je 0x460235
mov ebx, 2
jmp 0x46024c
push 0x26
push dword [0x52ec00]
call ebx
add esp, 8
mov ebx, eax
neg ebx
sbb ebx, ebx
and ebx, 6
dec ebx
lea ecx, [ebp - 0x124]
call dword [sym.imp.mfc120.dll_Ordinal_316]
lea eax, [ebp - 0x110]
mov dword [ebp - 4], 0
push eax
push ebx
push dword [0x52ec00]
call dword [sym.imp.Y747PROFUNCTION.dll_YPFDirectoryGet]
add esp, 0xc
lea eax, [ebp - 0x110]
lea ecx, [ebp - 0x124]
push eax
call dword [sym.imp.mfc120.dll_Ordinal_1525]
lea ecx, [ebp - 0x124]
call dword [sym.imp.mfc120.dll_Ordinal_1656]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp di, 0xc
je 0x4602c1
cmp di, 0xe
je 0x4602c1
imul ecx, dword [esi + 0x520], 0x2f0
mov eax, dword [0x52ec00]
test byte [ecx + eax + 0x40057d], 5
je 0x4602d2
mov ecx, dword [esi + 0x134]
push str.index.tbl
call dword [sym.imp.Y747UTLEXP.dll_public:_int___thiscall_YUECommentInfo::Create_char_const__]
mov eax, dword [esi + 0x57c]
inc eax
mov dword [esi + 0x57c], eax
cmp eax, 0xa
jge 0x4602e8
test eax, eax
jns 0x4602f2
mov dword [esi + 0x57c], 0
cmp di, 2
je 0x4603a7
cmp di, 0xc
je 0x4603a7
cmp di, 0xd
je 0x4603a7
cmp di, 0xe
je 0x4603a7
imul ecx, dword [esi + 0x520], 0x2f0
lea ebx, [esi + 0x454]
mov eax, dword [0x52ec00]
add eax, 0x4007a2
add eax, ecx
mov ecx, ebx
push eax
call dword [sym.imp.mfc120.dll_Ordinal_1524]
mov ecx, ebx
call dword [sym.imp.mfc120.dll_Ordinal_8028]
test al, al
jne 0x460375
imul ecx, dword [esi + 0x520], 0x2f0
mov eax, dword [0x52ec00]
mov al, byte [ecx + eax + 0x40059a]
and al, 1
movsx eax, al
neg eax
sbb eax, eax
add eax, 2
mov dword [esi + 0x580], eax
jmp 0x46037f
mov dword [esi + 0x580], 0
imul ecx, dword [esi + 0x520], 0x2f0
mov eax, dword [0x52ec00]
add eax, 0x4005d0
add eax, ecx
lea ecx, [esi + 0x45c]
push eax
call dword [sym.imp.mfc120.dll_Ordinal_1524]
jmp 0x46047b
imul ecx, dword [esi + 0x520], 0x2f0
lea ebx, [esi + 0x454]
mov eax, dword [0x52ec00]
add eax, 0x4007c4
add eax, ecx
mov ecx, ebx
push eax
call dword [sym.imp.mfc120.dll_Ordinal_1524]
cmp di, 2
jne 0x4603eb
mov ecx, ebx
call dword [sym.imp.mfc120.dll_Ordinal_8028]
test al, al
je 0x4603eb
push 0x4dfe84
mov ecx, ebx
call dword [sym.imp.mfc120.dll_Ordinal_1524]
push 0x32
lea eax, [esi + 0x59e]
mov dword [esi + 0x580], 1
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
cmp di, 0xc
je 0x460414
cmp di, 0xe
jne 0x46047b
push ebx
lea ecx, [ebp - 0x118]
call dword [sym.imp.mfc120.dll_Ordinal_300]
push ecx
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 1
mov ecx, esp
push eax
call dword [sym.imp.mfc120.dll_Ordinal_300]
mov ecx, dword [esi + 0x134]
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.Y747UTLEXP.dll_public:_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char______thiscall_YUECommentInfo::GetComment_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char____]
lea eax, [ebp - 0x11c]
mov byte [ebp - 4], 2
push eax
lea ecx, [esi + 0x45c]
call dword [sym.imp.mfc120.dll_Ordinal_1521]
lea ecx, [ebp - 0x11c]
call dword [sym.imp.mfc120.dll_Ordinal_1041]
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0
call dword [sym.imp.mfc120.dll_Ordinal_1041]
imul ecx, dword [esi + 0x520], 0x2f0
lea edi, [esi + 0x458]
mov eax, dword [0x52ec00]
add eax, ecx
mov cl, byte [eax + 0x40057d]
add eax, 0x400780
mov byte [ebp - 0x111], cl
test cl, 0xf
push eax
mov ecx, edi
je 0x4604cd
call dword [sym.imp.mfc120.dll_Ordinal_1524]
test byte [ebp - 0x111], 8
je 0x4604d3
mov ecx, edi
call dword [sym.imp.mfc120.dll_Ordinal_8028]
test al, al
je 0x4604d3
push 0x4dfe84
mov ecx, edi
call dword [sym.imp.mfc120.dll_Ordinal_1524]
imul ecx, dword [esi + 0x520], 0x2f0
mov eax, dword [0x52ec00]
test byte [ecx + eax + 0x40057c], 1
je 0x4604f8
mov dword [esi + 0x584], 1
jmp 0x460502
mov dword [esi + 0x584], 2
mov ecx, edi
call dword [sym.imp.mfc120.dll_Ordinal_8028]
test al, al
jne 0x460631
mov ecx, edi
call dword [sym.imp.mfc120.dll_Ordinal_1656]
push eax
mov ecx, ebx
call dword [sym.imp.mfc120.dll_Ordinal_2944]
test eax, eax
je 0x460631
imul ecx, dword [esi + 0x520], 0x2f0
lea ebx, [esi + 0x460]
mov eax, dword [0x52ec00]
add eax, 0x400600
add eax, ecx
mov ecx, ebx
push eax
call dword [sym.imp.mfc120.dll_Ordinal_1524]
test byte [ebp - 0x111], 5
je 0x460654
push edi
lea ecx, [ebp - 0x11c]
call dword [sym.imp.mfc120.dll_Ordinal_300]
lea ecx, [ebp - 0x118]
call dword [sym.imp.mfc120.dll_Ordinal_316]
mov eax, dword [esi + 0x584]
mov byte [ebp - 4], 4
cmp eax, 1
jne 0x4605cb
push ecx
lea eax, [ebp - 0x11c]
mov ecx, esp
push eax
call dword [sym.imp.mfc120.dll_Ordinal_300]
mov ecx, dword [esi + 0x134]
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.Y747UTLEXP.dll_public:_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char______thiscall_YUECommentInfo::GetComment_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char____]
push eax
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 5
call dword [sym.imp.mfc120.dll_Ordinal_1521]
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc120.dll_Ordinal_1041]
jmp 0x460608
cmp eax, 2
jne 0x460608
add esi, 0x5d0
lea ecx, [ebp - 0x11c]
push esi
call dword [sym.imp.mfc120.dll_Ordinal_1656]
push eax
push 0
push dword [0x52ec04]
push dword [0x52ec00]
call dword [sym.imp.Y747PROFUNCTION.dll_YPFGetComment]
add esp, 0x14
lea ecx, [ebp - 0x118]
push esi
call dword [sym.imp.mfc120.dll_Ordinal_1524]
lea eax, [ebp - 0x118]
mov ecx, ebx
push eax
call dword [sym.imp.mfc120.dll_Ordinal_1521]
lea ecx, [ebp - 0x118]
call dword [sym.imp.mfc120.dll_Ordinal_1041]
lea ecx, [ebp - 0x11c]
call dword [sym.imp.mfc120.dll_Ordinal_1041]
jmp 0x460654
mov ecx, edi
call dword [sym.imp.mfc120.dll_Ordinal_4272]
push 0x4e06a4
lea ecx, [esi + 0x460]
mov dword [esi + 0x584], 0
call dword [sym.imp.mfc120.dll_Ordinal_1524]
lea ecx, [ebp - 0x124]
call dword [sym.imp.mfc120.dll_Ordinal_1041]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c6016
mov esp, ebp
pop ebp
ret