Function at 0x404490
Capabilities:
Get common file path
Set current directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x414b46
push eax
mov dword fs:[0], esp
sub esp, 0x314
push ebx
push esi
push edi
mov edi, dword [esp + 0x334]
test edi, edi
mov ebx, ecx
jne 0x404600
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jge 0x404512
push 0xffc
call fcn.00409bfb
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
mov dword [esp + 0x328], edi
je 0x4046d5
push 0x41a038
push edi
push edi
push str.Jan_11_2012
push str.E:CommonSourceFileManageFileManage.cpp
push 0x249
push eax
call fcn.00405340
add esp, 0x1c
jmp 0x4046d7
lea ecx, [esp + 0x14]
push ecx
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jge 0x40456f
push 0xffc
call fcn.00409bfb
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
mov dword [esp + 0x328], 1
je 0x4046d5
push 0x41a038
push 0
push 0
push str.Jan_11_2012
push str.E:CommonSourceFileManageFileManage.cpp
push 0x24f
push eax
call fcn.00405340
add esp, 0x1c
jmp 0x4046d7
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x118]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
mov eax, dword [esp + 0x10]
jne 0x4045e9
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 0xffc
call fcn.00409bfb
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
mov dword [esp + 0x328], 2
je 0x4046d5
push 0x41a038
push 0
push 0
push str.Jan_11_2012
push str.E:CommonSourceFileManageFileManage.cpp
push 0x257
push eax
call fcn.00405340
add esp, 0x1c
jmp 0x4046d7
mov ecx, dword [esp + 0x14]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x14]
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 8]
jmp 0x404624
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x118]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x330]
push ecx
push str.cmd__c_del__Q___s.lnk_
push edx
call fcn.004094c9
add esp, 0xc
lea eax, [esp + 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x4046a5
push 0xffc
call fcn.00409bfb
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
mov dword [esp + 0x328], 3
je 0x4046d5
push 0x41a04c
push 0
push 0
push str.Jan_11_2012
push str.E:CommonSourceFileManageFileManage.cpp
push 0x267
push eax
call fcn.00405340
add esp, 0x1c
jmp 0x4046d7
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x118]
push ecx
call esi
test eax, eax
je 0x4046f1
lea edx, [esp + 0x18]
push 0
push edx
mov ecx, ebx
call fcn.004043f0
test al, al
je 0x4046f1
lea eax, [esp + 0x21c]
push eax
call esi
xor eax, eax
mov ecx, dword [esp + 0x320]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x320
ret 8
lea ecx, [esp + 0x21c]
push ecx
call esi
push 0xffc
call fcn.00409bfb
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
mov dword [esp + 0x328], 4
je 0x4046d5
push 0x41a04c
push 0
push 0
push str.Jan_11_2012
push str.E:CommonSourceFileManageFileManage.cpp
push 0x26f
push eax
call fcn.00405340
add esp, 0x1c
jmp 0x4046d7