Function at 0x4a8ed0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x50ee4a
push eax
mov eax, 0x1324
mov dword fs:[0], esp
call fcn.004c8da0
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x18]
mov ecx, edi
call sub.MFC42.DLL_CString::Empty
lea ecx, [esi + 0x1c]
call sub.MFC42.DLL_CString::Empty
lea ecx, [esi + 0x20]
call sub.MFC42.DLL_CString::Empty
xor ebx, ebx
push 0xffffffffffffffff
lea ecx, [esi + 0x24]
push ebx
call fcn.0045bf60
push 0xffffffffffffffff
lea ecx, [esi + 0x38]
push ebx
call fcn.00416000
mov ecx, dword [0x54bd00]
mov eax, dword [0x54b1f8]
inc ecx
cmp eax, ebx
mov dword [0x54bd00], ecx
je 0x4a9001
mov eax, dword [esp + 0x1344]
push eax
call fcn.004d7f00
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x4a9001
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x4c]
mov dword [esp + 0x133c], ebx
push ecx
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edx, dword [0x54bd00]
lea eax, [esp + 0x4c]
push edx
push eax
lea ecx, [esp + 0x18]
push str._sWL_ldRead
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x24c]
call fcn.004b21f0
push ebp
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x1344], 1
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea ecx, [esp + 0x254]
call fcn.004ac4d0
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
lea ecx, [esp + 0x24c]
mov byte [esp + 0x133c], bl
call fcn.004b23c0
lea ecx, [esp + 0x10]
mov dword [esp + 0x133c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ebp, dword [esp + 0x1344]
push edi
push ebp
mov ecx, esi
call fcn.004a6fb0
mov eax, dword [esp + 0x134c]
mov ecx, edi
push eax
call fcn.004c8322
mov eax, dword [edi]
mov ecx, esi
push eax
call fcn.004a8770
cmp eax, ebx
mov dword [esi + 0x4c], eax
jge 0x4a9084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [edi]
lea edx, [esp + 0x10]
push ecx
push str.__Worklist_SCP___Calling_AE_Title_:__s
push edx
mov dword [esp + 0x1348], 2
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, 0x54b128
push eax
call fcn.004965f0
lea ecx, [esp + 0x10]
mov dword [esp + 0x133c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4a94e1
cmp dword [0x54b1f8], ebx
je 0x4a90dc
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esi + 0x4c]
mov edx, dword [edi]
push ecx
push edx
lea eax, [esp + 0x18]
push str.__Worklist_SCP___AE_Title_:__s__Device_ID_:__d
push eax
mov dword [esp + 0x134c], 3
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x20]
add esp, 0x10
push ecx
mov ecx, 0x54b128
call fcn.004965f0
lea ecx, [esp + 0x10]
mov dword [esp + 0x133c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov edx, dword [esi + 0x4c]
mov ecx, esi
push edx
push ebp
call fcn.004a8dd0
push ebx
push ebp
mov ecx, esi
call fcn.004a71d0
cmp dword [esi + 0x2c], ebx
jne 0x4a910c
push str.__Worklist___No_item
mov ecx, 0x54b128
call fcn.004965f0
xor eax, eax
jmp 0x4a94e1
mov eax, dword [esi + 0x4c]
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.004a8a50
mov eax, dword [0x54b1f8]
mov dword [esp + 0x133c], 4
cmp eax, ebx
je 0x4a9181
mov edx, dword [esp + 0x18]
cmp dword [edx - 8], ebx
je 0x4a9181
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push str.WL_Filter:__s
push ecx
mov byte [esp + 0x1348], 5
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x20]
add esp, 0xc
mov ecx, 0x54b128
push edx
call fcn.004965f0
lea ecx, [esp + 0x14]
mov byte [esp + 0x133c], 4
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 8]
mov ecx, dword [ecx + eax*4]
add ecx, 0x7c
call fcn.004a52b0
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x4a91a0
mov dword [esp + 0x10], ebp
jmp 0x4a91aa
push 1
push eax
mov ecx, esi
call fcn.004a71d0
mov edi, 0x515c40
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
lea edx, [esp + 0x1c]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push edx
mov edx, dword [esi + 0x4c]
push eax
lea eax, [esi + 0x38]
mov byte [esp + 0x1344], 6
push eax
lea eax, [esi + 0x24]
push eax
push ecx
push edx
mov ecx, esi
call fcn.004a8830
test eax, eax
jne 0x4a9240
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x24]
mov byte [esp + 0x133c], 7
cmp eax, ebx
je 0x4a921d
mov ecx, dword [esp + 0x28]
push ecx
push eax
call sub.MFC42.DLL_DestructElements
mov edx, dword [esp + 0x24]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], 0x514bb8
mov dword [esp + 0x133c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4a94e1
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
mov ebp, dword [esp + 0x28]
mov ecx, dword [esi + 0x2c]
mov eax, ebp
mov byte [esp + 0x133c], 8
cdq
idiv ecx
cmp dword [esp + 0x1c], eax
jl 0x4a9277
mov eax, ebp
cdq
idiv ecx
mov dword [esp + 0x1c], eax
cmp dword [0x54b1f8], ebx
je 0x4a92c7
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
push str.__Worklist_SCP___Records_:___d
push ecx
mov byte [esp + 0x1348], 9
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x20]
add esp, 0xc
mov ecx, 0x54b128
push edx
call fcn.004965f0
lea ecx, [esp + 0x14]
mov byte [esp + 0x133c], 8
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x4a9463
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x3c]
call fcn.00416000
mov eax, dword [esi + 0x2c]
xor edi, edi
test eax, eax
jle 0x4a931e
lea ecx, [esi + 0x24]
call fcn.004a97d0
imul eax, ebx
add eax, edi
lea ecx, [esp + 0x20]
push eax
call fcn.0043cab0
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push eax
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x38]
call fcn.00415d90
mov eax, dword [esi + 0x2c]
inc edi
cmp edi, eax
jl 0x4a92e9
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x34]
push eax
lea eax, [esi + 0x24]
push eax
push ecx
mov ecx, esi
call fcn.004a8330
mov ebp, eax
test ebp, ebp
je 0x4a9384
mov edx, dword [esp + 0x1348]
push 0xc
mov edi, dword [edx + 8]
call sub.MFC42.DLL_operatornew
xor edx, edx
add esp, 4
cmp eax, edx
je 0x4a935b
mov dword [eax + 4], edx
mov dword [eax + 8], edx
jmp 0x4a935d
xor eax, eax
mov ecx, dword [esp + 0x1348]
cmp edi, edx
mov dword [ecx + 8], eax
mov dword [eax], ebp
mov eax, dword [ecx + 8]
mov dword [eax + 4], edi
je 0x4a937b
mov edx, dword [ecx + 8]
mov dword [edi + 8], edx
jmp 0x4a9381
mov eax, dword [ecx + 8]
mov dword [ecx + 4], eax
inc dword [ecx + 0x14]
mov eax, dword [0x54b1f8]
test eax, eax
je 0x4a9451
push ebp
call fcn.004d7f00
mov edi, eax
add esp, 4
test edi, edi
je 0x4a9451
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x14c]
mov byte [esp + 0x133c], 0xa
push ecx
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [0x54bd00]
lea edx, [ebx + 1]
push edx
lea ecx, [esp + 0x150]
push eax
push ecx
lea edx, [esp + 0x20]
push str._sWL_ldWrite_ld
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0xac0]
call fcn.004b21f0
push edi
push 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1344], 0xb
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea ecx, [esp + 0xac8]
call fcn.004ac4d0
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
lea ecx, [esp + 0xac0]
mov byte [esp + 0x133c], 0xa
call fcn.004b23c0
lea ecx, [esp + 0x14]
mov byte [esp + 0x133c], 8
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x1c]
inc ebx
cmp ebx, eax
jl 0x4a92d3
mov edi, 0x515c40
mov dword [esp + 0x34], edi
mov eax, dword [esp + 0x38]
mov byte [esp + 0x133c], 0xc
test eax, eax
je 0x4a948f
mov ecx, dword [esp + 0x3c]
push ecx
push eax
call sub.MFC42.DLL_DestructElements
mov edx, dword [esp + 0x38]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov esi, 0x514bb8
mov dword [esp + 0x20], edi
mov dword [esp + 0x34], esi
mov eax, dword [esp + 0x24]
mov byte [esp + 0x133c], 0xd
test eax, eax
je 0x4a94c4
mov ecx, dword [esp + 0x28]
push ecx
push eax
call sub.MFC42.DLL_DestructElements
mov edx, dword [esp + 0x24]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], esi
mov dword [esp + 0x133c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x1334]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1330
ret 0xc