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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436cbe
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 0x404791
mov ecx, dword [ebp - 0x5c4]
call fcn.0040ea90
mov dword [ebp - 0x668], eax
jmp 0x40479b
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 0x38
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x5cc], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x5cc], 0
je 0x4047f3
mov ecx, dword [ebp - 0x5cc]
call fcn.00413ea0
mov dword [ebp - 0x66c], eax
jmp 0x4047fd
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.00408c5e
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.004077a0
push eax
mov ecx, dword [ebp - 0x24]
call fcn.00413f8f
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 0x4048e7
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 0x4048c8
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 0x4048d2
mov dword [ebp - 0x678], 0
push 0
push 0
push 0x443174
call sub.MFC42.DLL_AfxMessageBox
xor al, al
jmp 0x4056f4
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 0x404936
mov edx, dword [ebp - 0x664]
add edx, 0x104
push edx
mov ecx, dword [ebp - 0x5e4]
call fcn.004072f2
mov dword [ebp - 0x67c], eax
jmp 0x404940
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.004079d0
cmp dword [eax + 0x38], 1
jbe 0x404a61
push 0
lea ecx, [ebp - 0x570]
call fcn.0040253b
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x24]
call fcn.004079d0
add eax, 0x14
push eax
lea ecx, [ebp - 0x40]
call fcn.0042e0e6
lea ecx, [ebp - 0x570]
call sub.MFC42.DLL_CDialog::DoModal
cmp eax, 2
jne 0x4049d3
mov byte [ebp - 0x5e8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x570]
call fcn.00402bb0
mov al, byte [ebp - 0x5e8]
jmp 0x4056f4
push 0
mov ecx, dword [ebp - 0x664]
add ecx, 0xc8
call fcn.004074a0
mov ecx, eax
call fcn.004077a0
push eax
mov eax, dword [ebp - 0x664]
mov ecx, dword [eax + 0x158]
call fcn.004142bc
and eax, 0xff
test eax, eax
jne 0x404a3a
push 0
push 0
push 0x443194
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 0x4056f4
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.004079d0
add eax, 0x20
push eax
lea ecx, [ebp - 0x1c]
call fcn.0042e0da
mov dword [ebp - 4], 5
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x1c]
call fcn.00402c90
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
sub edx, 1
mov dword [ebp - 0x30], edx
jmp 0x404aab
mov eax, dword [ebp - 0x30]
sub eax, 1
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jl 0x404ad3
mov ecx, dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00412850
mov byte [ebp - 0x574], al
movsx edx, byte [ebp - 0x574]
cmp edx, 0x2e
jne 0x404ad1
jmp 0x404ad3
jmp 0x404aa2
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 0x4431b4
lea ecx, [ebp - 0x38]
call fcn.004077a0
push eax
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::Replace
push 0x4431bc
lea edx, [ebp - 0x20]
push edx
call fcn.00407490
mov ecx, eax
call fcn.004108c5
mov byte [ebp - 4], 7
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x664]
call fcn.00408779
lea edx, [ebp - 0x1c]
push edx
push 0x4431c4
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x5f0]
push ecx
call sub.MFC42.DLL_operator
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_1
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.004077a0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x404eab
lea ecx, [ebp - 0x578]
call fcn.00423920
mov byte [ebp - 4], 0xc
push 7
push 0
push 0x443490
lea ecx, [ebp - 0x578]
call fcn.00407f10
mov dword [ebp - 0x57c], eax
cmp dword [ebp - 0x57c], 0
jl 0x404e98
lea ecx, [ebp - 0x10]
call fcn.004077a0
push eax
lea ecx, [ebp - 0x604]
call fcn.00407500
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.00407710
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x600]
push ecx
lea ecx, [ebp - 0x578]
call fcn.00415f60
mov ecx, eax
call fcn.00407930
mov word [ebp - 0x580], ax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x600]
call fcn.004077b0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x604]
call fcn.00407590
movsx edx, word [ebp - 0x580]
cmp edx, 0xffffffff
jne 0x404e98
push ecx
mov ecx, esp
mov dword [ebp - 0x608], esp
push 0x4431cc
call fcn.00407500
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.00415f60
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.004077f0
mov dword [ebp - 0x698], eax
mov byte [ebp - 4], 0x10
push 0x4431ec
lea ecx, [ebp - 0x584]
call fcn.00415f60
mov ecx, eax
call fcn.004078f0
sub eax, 1
push ecx
mov edx, esp
mov dword [ebp - 0x60c], esp
push eax
push edx
lea ecx, [ebp - 0x584]
call fcn.00415f60
mov ecx, eax
call fcn.00407890
mov dword [ebp - 0x69c], eax
lea eax, [ebp - 0x610]
push eax
call fcn.00412969
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 fcn.0042e0e6
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.004079d0
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x664]
mov ecx, dword [edx + 0x158]
call fcn.004079d0
add eax, 0x28
push eax
lea ecx, [ebp - 0x588]
call fcn.0042e0da
mov byte [ebp - 4], 0x12
push 0x4484d4
lea eax, [ebp - 0x588]
push eax
call fcn.00407410
and eax, 0xff
test eax, eax
je 0x404e7a
cmp dword [ebp - 0x18], 0
je 0x404e7a
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x590]
call fcn.0042e0da
mov byte [ebp - 4], 0x13
lea edx, [ebp - 0x588]
push edx
lea ecx, [ebp - 0x58c]
call fcn.0042e0da
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.004077a0
push eax
lea ecx, [ebp - 0x590]
call sub.MFC42.DLL_CString::Find_1
mov dword [ebp - 0x594], eax
cmp dword [ebp - 0x594], 0xffffffff
je 0x404e5c
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 fcn.0042e0e6
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.00407ef0
mov byte [ebp - 0x14], 0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x578]
call fcn.00407ef0
mov ecx, dword [ebp - 0x14]
and ecx, 0xff
test ecx, ecx
je 0x405040
mov edx, dword [ebp - 0x664]
mov ecx, dword [edx + 0x158]
call fcn.004079d0
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.004079d0
add eax, 0x24
push eax
lea ecx, [ebp - 0x28]
call fcn.0042e0e6
cmp dword [ebp - 0x2c], 0
je 0x404f52
lea ecx, [ebp - 0x28]
call fcn.004077a0
push eax
lea edx, [ebp - 0x618]
push edx
call fcn.00407490
mov ecx, eax
call fcn.004108c5
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 fcn.0042e0e6
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x618]
call sub.MFC42.DLL_CString::CString
jmp 0x405039
lea edx, [ebp - 0x598]
push edx
push 0x20019
push 0
push 0x4431f4
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x59c], eax
cmp dword [ebp - 0x59c], 0
je 0x404fde
push 0
push 0
push 0x443214
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 0x4056f4
mov eax, dword [ebp - 0x28]
push eax
push 0x443234
lea ecx, [ebp - 0x620]
push ecx
call fcn.00407490
mov ecx, eax
call fcn.004108c5
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 0x44323c
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 0x405276
push 0x1710
call fcn.004073f0
mov dword [ebp - 0x628], eax
mov byte [ebp - 4], 0x18
cmp dword [ebp - 0x628], 0
je 0x405085
push 0
mov ecx, dword [ebp - 0x628]
call fcn.00409196
mov dword [ebp - 0x6c0], eax
jmp 0x40508f
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.004079d0
add eax, 0x18
push eax
lea ecx, [ebp - 0x5a8]
call fcn.0042e0da
mov byte [ebp - 4], 0x19
mov edx, dword [ebp - 0x664]
mov ecx, dword [edx + 0x158]
call fcn.004079d0
add eax, 0x1c
push eax
lea ecx, [ebp - 0x5a0]
call fcn.0042e0da
mov byte [ebp - 4], 0x1a
mov eax, dword [ebp - 0x664]
mov ecx, dword [eax + 0x158]
call fcn.004079d0
add eax, 0x28
push eax
lea ecx, [ebp - 0x5a4]
call fcn.0042e0da
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x62c]
push ecx
mov edx, dword [ebp - 0x664]
mov ecx, dword [edx + 0x158]
call fcn.004079d0
mov ecx, eax
call fcn.0041152b
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 fcn.0042e0e6
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.004079d0
mov ecx, eax
call fcn.004116ea
mov ecx, dword [ebp - 0x664]
mov edx, dword [ecx + 0x15c]
mov dword [edx + 0x60], eax
cmp dword [ebp - 0x664], 0
je 0x4051e7
mov eax, dword [ebp - 0x664]
add eax, 0xc4
mov dword [ebp - 0x6cc], eax
jmp 0x4051f1
mov dword [ebp - 0x6cc], 0
lea ecx, [ebp - 0x5a4]
call fcn.004077a0
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.004077a0
push eax
push 0
lea ecx, [ebp - 0x5a0]
call fcn.004077a0
push eax
lea ecx, [ebp - 0x5a8]
call fcn.004077a0
push eax
mov ecx, dword [ebp - 0x6cc]
push ecx
mov edx, dword [ebp - 0x664]
mov ecx, dword [edx + 0x15c]
call fcn.0040a3e9
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 0x4056a8
mov eax, dword [ebp - 0x664]
cmp dword [eax + 0x194], 2
jne 0x405567
push 0x116c
call fcn.004073f0
mov dword [ebp - 0x634], eax
mov byte [ebp - 4], 0x1d
cmp dword [ebp - 0x634], 0
je 0x4052b9
mov ecx, dword [ebp - 0x634]
call fcn.0040c9d0
mov dword [ebp - 0x6d0], eax
jmp 0x4052c3
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 0x405345
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 0x4056f4
push 0
push 0x3039
call fcn.004079b0
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 0x4053e1
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 0x4056f4
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.00408b37
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x5b0]
call fcn.004074e0
test eax, eax
je 0x405441
mov edx, dword [ebp - 0x664]
mov ecx, dword [edx + 0x158]
call fcn.004079d0
add eax, 0x20
push eax
lea ecx, [ebp - 0x5b0]
call fcn.0042e0e6
mov eax, dword [ebp - 0x664]
mov ecx, dword [eax + 0x158]
call fcn.004079d0
add eax, 0x28
push eax
lea ecx, [ebp - 0x5ac]
call fcn.0042e0da
mov byte [ebp - 4], 0x1f
cmp dword [ebp - 0x664], 0
je 0x405482
mov ecx, dword [ebp - 0x664]
add ecx, 0xc4
mov dword [ebp - 0x6d4], ecx
jmp 0x40548c
mov dword [ebp - 0x6d4], 0
lea ecx, [ebp - 0x5ac]
call fcn.004077a0
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.004077a0
push eax
lea ecx, [ebp - 0x5b0]
call fcn.004077a0
push eax
mov edx, dword [ebp - 0x6d4]
push edx
mov eax, dword [ebp - 0x664]
mov ecx, dword [eax + 0x1c0]
call fcn.0040cce2
test eax, eax
jne 0x405544
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 0x4056f4
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 0x4056a8
lea ecx, [ebp - 0x28]
call fcn.004077a0
push eax
call fcn.00407490
mov ecx, eax
call fcn.004109bb
lea ecx, [ebp - 0x28]
call fcn.004077a0
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x4056a8
mov dword [ebp - 0x5b8], 0
lea ecx, [ebp - 0x28]
call fcn.00402c90
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 0x4055d0
jmp 0x4056a8
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.004077a0
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 0x405687
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.004077a0
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 0x4055ab
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