Function at 0x404f52
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439801
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6d8
mov dword [ebp - 0x664], ecx
push 0x54
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x5c4], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x5c4], 0
je 0x404fa9
mov ecx, dword [ebp - 0x5c4]
call fcn.00410e00
mov dword [ebp - 0x668], eax
jmp 0x404fb3
mov dword [ebp - 0x668], 0
mov eax, dword [ebp - 0x668]
mov dword [ebp - 0x5c0], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x664]
mov edx, dword [ebp - 0x5c0]
mov dword [ecx + 0x154], edx
push 0x3c
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x5cc], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x5cc], 0
je 0x40500b
mov ecx, dword [ebp - 0x5cc]
call fcn.00416240
mov dword [ebp - 0x66c], eax
jmp 0x405015
mov dword [ebp - 0x66c], 0
mov eax, dword [ebp - 0x66c]
mov dword [ebp - 0x5c8], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x5c8]
mov dword [ebp - 0x24], ecx
lea edx, [ebp - 0x5d4]
push edx
mov ecx, dword [ebp - 0x664]
add ecx, 0x16c
call fcn.0040963e
mov dword [ebp - 0x670], eax
mov eax, dword [ebp - 0x670]
mov dword [ebp - 0x674], eax
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x674]
call fcn.004081e0
push eax
mov ecx, dword [ebp - 0x24]
call fcn.0041634d
and eax, 0xff
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x5d0], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5d4]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x5d0]
and ecx, 0xff
test ecx, ecx
je 0x4050ff
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x5dc], edx
mov eax, dword [ebp - 0x5dc]
mov dword [ebp - 0x5d8], eax
cmp dword [ebp - 0x5d8], 0
je 0x4050e0
push 1
mov ecx, dword [ebp - 0x5d8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x5d8]
call dword [edx]
mov dword [ebp - 0x678], eax
jmp 0x4050ea
mov dword [ebp - 0x678], 0
push 0
push 0
push 0x447324
call sub.MFC42.DLL_AfxMessageBox
xor al, al
jmp 0x405f0c
mov eax, dword [ebp - 0x664]
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0x158], ecx
push 8
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x5e4], eax
mov dword [ebp - 4], 3
cmp dword [ebp - 0x5e4], 0
je 0x40514e
mov edx, dword [ebp - 0x664]
add edx, 0x104
push edx
mov ecx, dword [ebp - 0x5e4]
call fcn.00407c44
mov dword [ebp - 0x67c], eax
jmp 0x405158
mov dword [ebp - 0x67c], 0
mov eax, dword [ebp - 0x67c]
mov dword [ebp - 0x5e0], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x664]
mov edx, dword [ebp - 0x5e0]
mov dword [ecx + 0x164], edx
mov ecx, dword [ebp - 0x24]
call fcn.00408410
cmp dword [eax + 0x38], 1
jbe 0x405279
push 0
lea ecx, [ebp - 0x570]
call fcn.0040253b
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x24]
call fcn.00408410
add eax, 0x14
push eax
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x570]
call sub.MFC42.DLL_CDialog::DoModal
cmp eax, 2
jne 0x4051eb
mov byte [ebp - 0x5e8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x570]
call fcn.00402bb0
mov al, byte [ebp - 0x5e8]
jmp 0x405f0c
push 0
mov ecx, dword [ebp - 0x664]
add ecx, 0xc8
call fcn.00407ee0
mov ecx, eax
call fcn.004081e0
push eax
mov eax, dword [ebp - 0x664]
mov ecx, dword [eax + 0x158]
call fcn.0041670e
and eax, 0xff
test eax, eax
jne 0x405252
push 0
push 0
push 0x447344
call sub.MFC42.DLL_AfxMessageBox
mov byte [ebp - 0x5ec], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x570]
call fcn.00402bb0
mov al, byte [ebp - 0x5ec]
jmp 0x405f0c
push 1
push 0
mov ecx, dword [ebp - 0x664]
add ecx, 0xc8
call sub.MFC42.DLL_CStringArray::RemoveAt
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x570]
call fcn.00402bb0
mov ecx, dword [ebp - 0x664]
mov ecx, dword [ecx + 0x158]
call fcn.00408410
add eax, 0x20
push eax
lea ecx, [ebp - 0x1c]
call fcn.00430aaa
mov dword [ebp - 4], 5
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x1c]
call fcn.00402c80
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
sub edx, 1
mov dword [ebp - 0x30], edx
jmp 0x4052c3
mov eax, dword [ebp - 0x30]
sub eax, 1
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jl 0x4052eb
mov ecx, dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00407d70
mov byte [ebp - 0x574], al
movsx edx, byte [ebp - 0x574]
cmp edx, 0x2e
jne 0x4052e9
jmp 0x4052eb
jmp 0x4052ba
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::Right
mov byte [ebp - 4], 6
push 0x447364
lea ecx, [ebp - 0x38]
call fcn.004081e0
push eax
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::Replace
push 0x44736c
lea edx, [ebp - 0x20]
push edx
call fcn.00407e10
mov ecx, eax
call fcn.00412c35
mov byte [ebp - 4], 7
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x664]
call fcn.00409159
lea edx, [ebp - 0x1c]
push edx
push 0x447374
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x5f0]
push ecx
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0x680], eax
mov edx, dword [ebp - 0x680]
mov dword [ebp - 0x684], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x684]
push eax
lea ecx, [ebp - 0x10]
push ecx
call sub.MFC42.DLL_operator
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x5f0]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 0xb
mov byte [ebp - 0x14], 1
lea ecx, [ebp - 0x10]
call fcn.004081e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4056c3
lea ecx, [ebp - 0x578]
call fcn.00426310
mov byte [ebp - 4], 0xc
push 7
push 0
push 0x447640
lea ecx, [ebp - 0x578]
call fcn.00408920
mov dword [ebp - 0x57c], eax
cmp dword [ebp - 0x57c], 0
jl 0x4056b0
lea ecx, [ebp - 0x10]
call fcn.004081e0
push eax
lea ecx, [ebp - 0x604]
call fcn.00407f40
mov dword [ebp - 0x688], eax
mov edx, dword [ebp - 0x688]
mov dword [ebp - 0x68c], edx
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x68c]
push eax
lea ecx, [ebp - 0x600]
call fcn.00408150
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x600]
push ecx
lea ecx, [ebp - 0x578]
call fcn.00416060
mov ecx, eax
call fcn.00408370
mov word [ebp - 0x580], ax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x600]
call fcn.004081f0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x604]
call fcn.00407fd0
movsx edx, word [ebp - 0x580]
cmp edx, 0xffffffff
jne 0x4056b0
push ecx
mov ecx, esp
mov dword [ebp - 0x608], esp
push 0x44737c
call fcn.00407f40
mov dword [ebp - 0x690], eax
mov eax, dword [ebp - 0x690]
mov dword [ebp - 0x694], eax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x584]
push ecx
lea ecx, [ebp - 0x578]
call fcn.00416060
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.00408230
mov dword [ebp - 0x698], eax
mov byte [ebp - 4], 0x10
push 0x44739c
lea ecx, [ebp - 0x584]
call fcn.00416060
mov ecx, eax
call fcn.00408330
sub eax, 1
push ecx
mov edx, esp
mov dword [ebp - 0x60c], esp
push eax
push edx
lea ecx, [ebp - 0x584]
call fcn.00416060
mov ecx, eax
call fcn.004082d0
mov dword [ebp - 0x69c], eax
lea eax, [ebp - 0x610]
push eax
call fcn.00414cb9
add esp, 0xc
mov dword [ebp - 0x6a0], eax
mov ecx, dword [ebp - 0x6a0]
mov dword [ebp - 0x6a4], ecx
mov byte [ebp - 4], 0x11
mov edx, dword [ebp - 0x6a4]
push edx
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::operator
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x610]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 0x3c], 1
mov eax, dword [ebp - 0x664]
mov ecx, dword [eax + 0x158]
call fcn.00408410
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x664]
mov ecx, dword [edx + 0x158]
call fcn.00408410
add eax, 0x28
push eax
lea ecx, [ebp - 0x588]
call fcn.00430aaa
mov byte [ebp - 4], 0x12
push 0x44d04c
lea eax, [ebp - 0x588]
push eax
call fcn.00407d90
and eax, 0xff
test eax, eax
je 0x405692
cmp dword [ebp - 0x18], 0
je 0x405692
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x590]
call fcn.00430aaa
mov byte [ebp - 4], 0x13
lea edx, [ebp - 0x588]
push edx
lea ecx, [ebp - 0x58c]
call fcn.00430aaa
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x590]
call sub.MFC42.DLL_CString::MakeLower
lea ecx, [ebp - 0x58c]
call sub.MFC42.DLL_CString::MakeLower
lea ecx, [ebp - 0x58c]
call fcn.004081e0
push eax
lea ecx, [ebp - 0x590]
call sub.MFC42.DLL_CString::Find_1
mov dword [ebp - 0x594], eax
cmp dword [ebp - 0x594], 0xffffffff
je 0x405674
mov eax, dword [ebp - 0x594]
push eax
lea ecx, [ebp - 0x614]
push ecx
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 0x6a8], eax
mov edx, dword [ebp - 0x6a8]
mov dword [ebp - 0x6ac], edx
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x6ac]
push eax
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::operator
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x614]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x58c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x590]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x588]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x584]
call fcn.00408900
mov byte [ebp - 0x14], 0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x578]
call fcn.00408900
mov ecx, dword [ebp - 0x14]
and ecx, 0xff
test ecx, ecx
je 0x405858
mov edx, dword [ebp - 0x664]
mov ecx, dword [edx + 0x158]
call fcn.00408410
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x664]
mov ecx, dword [ecx + 0x158]
call fcn.00408410
add eax, 0x24
push eax
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::operator
cmp dword [ebp - 0x2c], 0
je 0x40576a
lea ecx, [ebp - 0x28]
call fcn.004081e0
push eax
lea edx, [ebp - 0x618]
push edx
call fcn.00407e10
mov ecx, eax
call fcn.00412c35
mov dword [ebp - 0x6b0], eax
mov eax, dword [ebp - 0x6b0]
mov dword [ebp - 0x6b4], eax
mov byte [ebp - 4], 0x16
mov ecx, dword [ebp - 0x6b4]
push ecx
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::operator
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x618]
call sub.MFC42.DLL_CString::CString
jmp 0x405851
lea edx, [ebp - 0x598]
push edx
push 0x20019
push 0
push 0x4473a4
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x59c], eax
cmp dword [ebp - 0x59c], 0
je 0x4057f6
push 0
push 0
push 0x4473c4
call sub.MFC42.DLL_AfxMessageBox
mov byte [ebp - 0x61c], 0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov al, byte [ebp - 0x61c]
jmp 0x405f0c
mov eax, dword [ebp - 0x28]
push eax
push 0x4473e4
lea ecx, [ebp - 0x620]
push ecx
call fcn.00407e10
mov ecx, eax
call fcn.00412c35
mov dword [ebp - 0x6b8], eax
mov edx, dword [ebp - 0x6b8]
mov dword [ebp - 0x6bc], edx
mov byte [ebp - 4], 0x17
mov eax, dword [ebp - 0x6bc]
mov ecx, dword [eax]
push ecx
push 0x4473ec
lea edx, [ebp - 0x28]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x620]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x664]
cmp dword [eax + 0x194], 1
jne 0x405a8e
push 0x1710
call fcn.00407d50
mov dword [ebp - 0x628], eax
mov byte [ebp - 4], 0x18
cmp dword [ebp - 0x628], 0
je 0x40589d
push 0
mov ecx, dword [ebp - 0x628]
call fcn.00409b76
mov dword [ebp - 0x6c0], eax
jmp 0x4058a7
mov dword [ebp - 0x6c0], 0
mov ecx, dword [ebp - 0x6c0]
mov dword [ebp - 0x624], ecx
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x664]
mov eax, dword [ebp - 0x624]
mov dword [edx + 0x15c], eax
mov ecx, dword [ebp - 0x664]
mov edx, dword [ebp - 0x664]
mov eax, dword [edx + 0x15c]
mov dword [ecx + 0x20], eax
mov ecx, dword [ebp - 0x664]
mov ecx, dword [ecx + 0x158]
call fcn.00408410
add eax, 0x18
push eax
lea ecx, [ebp - 0x5a8]
call fcn.00430aaa
mov byte [ebp - 4], 0x19
mov edx, dword [ebp - 0x664]
mov ecx, dword [edx + 0x158]
call fcn.00408410
add eax, 0x1c
push eax
lea ecx, [ebp - 0x5a0]
call fcn.00430aaa
mov byte [ebp - 4], 0x1a
mov eax, dword [ebp - 0x664]
mov ecx, dword [eax + 0x158]
call fcn.00408410
add eax, 0x28
push eax
lea ecx, [ebp - 0x5a4]
call fcn.00430aaa
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x62c]
push ecx
mov edx, dword [ebp - 0x664]
mov ecx, dword [edx + 0x158]
call fcn.00408410
mov ecx, eax
call fcn.0041389b
mov dword [ebp - 0x6c4], eax
mov eax, dword [ebp - 0x6c4]
mov dword [ebp - 0x6c8], eax
mov byte [ebp - 4], 0x1c
mov ecx, dword [ebp - 0x6c8]
push ecx
mov edx, dword [ebp - 0x664]
mov ecx, dword [edx + 0x15c]
add ecx, 0x6d4
call sub.MFC42.DLL_CString::operator
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x62c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x664]
mov ecx, dword [eax + 0x15c]
add ecx, 0x64
push ecx
mov edx, dword [ebp - 0x664]
mov ecx, dword [edx + 0x158]
call fcn.00408410
mov ecx, eax
call fcn.00413a5a
mov ecx, dword [ebp - 0x664]
mov edx, dword [ecx + 0x15c]
mov dword [edx + 0x60], eax
cmp dword [ebp - 0x664], 0
je 0x4059ff
mov eax, dword [ebp - 0x664]
add eax, 0xc4
mov dword [ebp - 0x6cc], eax
jmp 0x405a09
mov dword [ebp - 0x6cc], 0
lea ecx, [ebp - 0x5a4]
call fcn.004081e0
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x28]
call fcn.004081e0
push eax
push 0
lea ecx, [ebp - 0x5a0]
call fcn.004081e0
push eax
lea ecx, [ebp - 0x5a8]
call fcn.004081e0
push eax
mov ecx, dword [ebp - 0x6cc]
push ecx
mov edx, dword [ebp - 0x664]
mov ecx, dword [edx + 0x15c]
call fcn.0040af13
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x5a4]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x5a0]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x5a8]
call sub.MFC42.DLL_CString::CString
jmp 0x405ec0
mov eax, dword [ebp - 0x664]
cmp dword [eax + 0x194], 2
jne 0x405d7f
push 0x116c
call fcn.00407d50
mov dword [ebp - 0x634], eax
mov byte [ebp - 4], 0x1d
cmp dword [ebp - 0x634], 0
je 0x405ad1
mov ecx, dword [ebp - 0x634]
call fcn.0040ed00
mov dword [ebp - 0x6d0], eax
jmp 0x405adb
mov dword [ebp - 0x6d0], 0
mov ecx, dword [ebp - 0x6d0]
mov dword [ebp - 0x630], ecx
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x664]
mov eax, dword [ebp - 0x630]
mov dword [edx + 0x1c0], eax
mov ecx, dword [ebp - 0x664]
cmp dword [ecx + 0x1c0], 0
jne 0x405b5d
mov byte [ebp - 0x638], 0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov al, byte [ebp - 0x638]
jmp 0x405f0c
push 0
push 0x3039
call fcn.004083f0
push eax
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x648]
call fcn.00402b40
push eax
push 0
push str.Setup2MsgWindow
push 0
mov edx, dword [ebp - 0x664]
mov ecx, dword [edx + 0x1c0]
mov eax, dword [ebp - 0x664]
mov edx, dword [eax + 0x1c0]
mov eax, dword [edx]
call dword [eax + 0x5c]
test eax, eax
jne 0x405bf9
mov byte [ebp - 0x64c], 0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov al, byte [ebp - 0x64c]
jmp 0x405f0c
mov ecx, dword [ebp - 0x664]
mov edx, dword [ebp - 0x664]
mov eax, dword [edx + 0x1c0]
mov dword [ecx + 0x20], eax
lea ecx, [ebp - 0x5b0]
push ecx
mov ecx, dword [ebp - 0x664]
add ecx, 0x16c
call fcn.00409517
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x5b0]
call fcn.00407f20
test eax, eax
je 0x405c59
mov edx, dword [ebp - 0x664]
mov ecx, dword [edx + 0x158]
call fcn.00408410
add eax, 0x20
push eax
lea ecx, [ebp - 0x5b0]
call sub.MFC42.DLL_CString::operator
mov eax, dword [ebp - 0x664]
mov ecx, dword [eax + 0x158]
call fcn.00408410
add eax, 0x28
push eax
lea ecx, [ebp - 0x5ac]
call fcn.00430aaa
mov byte [ebp - 4], 0x1f
cmp dword [ebp - 0x664], 0
je 0x405c9a
mov ecx, dword [ebp - 0x664]
add ecx, 0xc4
mov dword [ebp - 0x6d4], ecx
jmp 0x405ca4
mov dword [ebp - 0x6d4], 0
lea ecx, [ebp - 0x5ac]
call fcn.004081e0
push eax
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004081e0
push eax
lea ecx, [ebp - 0x5b0]
call fcn.004081e0
push eax
mov edx, dword [ebp - 0x6d4]
push edx
mov eax, dword [ebp - 0x664]
mov ecx, dword [eax + 0x1c0]
call fcn.0040f047
test eax, eax
jne 0x405d5c
mov byte [ebp - 0x650], 0
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x5ac]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x5b0]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov al, byte [ebp - 0x650]
jmp 0x405f0c
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x5ac]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x5b0]
call sub.MFC42.DLL_CString::CString
jmp 0x405ec0
lea ecx, [ebp - 0x28]
call fcn.004081e0
push eax
call fcn.00407e10
mov ecx, eax
call fcn.00412d2b
lea ecx, [ebp - 0x28]
call fcn.004081e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x405ec0
mov dword [ebp - 0x5b8], 0
lea ecx, [ebp - 0x28]
call fcn.00402c80
mov dword [ebp - 0x5b4], eax
mov ecx, dword [ebp - 0x5b8]
push ecx
push 0x5c
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::Find
mov dword [ebp - 0x5bc], eax
cmp dword [ebp - 0x5bc], 0
jge 0x405de8
jmp 0x405ec0
mov edx, dword [ebp - 0x5bc]
push edx
lea eax, [ebp - 0x658]
push eax
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 0x6d8], eax
mov ecx, dword [ebp - 0x6d8]
mov dword [ebp - 0x6dc], ecx
mov byte [ebp - 4], 0x20
mov ecx, dword [ebp - 0x6dc]
call fcn.004081e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x654], al
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x658]
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x654]
and edx, 0xff
test edx, edx
je 0x405e9f
push 0
mov eax, dword [ebp - 0x5bc]
push eax
lea ecx, [ebp - 0x65c]
push ecx
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 0x6e0], eax
mov edx, dword [ebp - 0x6e0]
mov dword [ebp - 0x6e4], edx
mov byte [ebp - 4], 0x21
mov ecx, dword [ebp - 0x6e4]
call fcn.004081e0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x65c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x5bc]
add eax, 1
mov dword [ebp - 0x5b8], eax
mov ecx, dword [ebp - 0x5b8]
cmp ecx, dword [ebp - 0x5b4]
jl 0x405dc3
mov byte [ebp - 0x660], 1
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov al, byte [ebp - 0x660]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret