Function at 0x402330
Capabilities:
Copy file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4033bd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb4
lea eax, [esp + 0x34]
mov dword [esp + 0xbc], 1
push eax
push 0x80
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, dword [esp + 0xc8]
push ecx
call dword [sym.imp.MSVCRT.dll__chdir]
add esp, 4
test eax, eax
je 0x4023bf
lea ecx, [esp + 0xc8]
mov byte [esp + 0xbc], 0
call fcn.00402b50
lea ecx, [esp + 0xcc]
mov dword [esp + 0xbc], 0xffffffff
call fcn.00402b50
xor eax, eax
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
add esp, 0xc0
ret 0xc
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x14]
mov byte [esp + 0xcc], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x18]
mov byte [esp + 0xcc], 3
call sub.MFC42.DLL_CString::CString_2
push str..dwg
lea edx, [esp + 0x18]
mov bl, 4
push 0x40602c
push edx
mov byte [esp + 0xd8], bl
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
add esp, 0xc
lea ecx, [esp + 0x28]
push 0
push eax
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x40258a
mov esi, dword [esp + 0xd4]
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x1c]
mov edi, eax
push ecx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFileFind::GetFileName
mov edx, dword [eax]
lea eax, [esp + 0x14]
push edx
push 0x40602c
push eax
mov byte [esp + 0xd8], 5
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x1c]
mov byte [esp + 0xcc], bl
call fcn.00402b50
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFileFind::GetFileName
mov edx, dword [eax]
mov eax, dword [esp + 0xdc]
push edx
push eax
lea ecx, [esp + 0x20]
push str._s_s
push ecx
mov byte [esp + 0xdc], 6
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x24]
mov byte [esp + 0xcc], bl
call fcn.00402b50
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x20]
lea ecx, [esp + 0x28]
push edx
mov byte [esp + 0xd0], 7
call sub.MFC42.DLL_CFileFind::GetFilePath
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push eax
push 0x40602c
push ecx
mov byte [esp + 0xd8], 8
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x20]
mov byte [esp + 0xcc], 7
call fcn.00402b50
push 0x3f0
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
test eax, eax
je 0x40257a
mov edx, dword [esp + 0x10]
mov ecx, esi
push edx
push 0x3f0
call sub.MFC42.DLL_CWnd::SetDlgItemTextA
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push 0x40602c
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov ecx, esi
push edx
push 0x3f1
call sub.MFC42.DLL_CWnd::SetDlgItemTextA
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 0
push eax
push ecx
call ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0xcc], bl
call fcn.00402b50
test edi, edi
jne 0x402433
jmp 0x40258a
lea ecx, [esp + 0x10]
mov byte [esp + 0xcc], bl
call fcn.00402b50
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.MSVCRT.dll__chdir]
add esp, 4
lea ecx, [esp + 0x18]
mov byte [esp + 0xcc], 3
call fcn.00402b50
lea ecx, [esp + 0x14]
mov byte [esp + 0xcc], 2
call fcn.00402b50
lea ecx, [esp + 0x28]
mov byte [esp + 0xcc], 1
call fcn.00402e26
lea ecx, [esp + 0xd8]
mov byte [esp + 0xcc], 0
call fcn.00402b50
lea ecx, [esp + 0xdc]
mov dword [esp + 0xcc], 0xffffffff
call fcn.00402b50
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0xc0
ret 0xc