Function at 0x4204e0
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x460c78
push eax
mov edx, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x20
xor eax, eax
push ebx
push ebp
push esi
mov esi, ecx
lea ecx, [edx + edx*2]
mov ebp, dword [esp + 0x4c]
push edi
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
lea edi, [ecx*4 - 0x12c]
test edi, edi
jl 0x420517
cmp edi, 0x5dc
jge 0x420517
lea ecx, [edx + edx*2 + 0x4b]
mov bl, byte [eax + ebp]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
lea ecx, [eax + ecx*4]
mov byte [ecx + esi], bl
inc eax
inc edi
cmp eax, 0x12c
jl 0x4204f8
mov edx, dword [esi + 0x2458]
mov ecx, dword [esi + 0x2454]
inc edx
mov eax, edx
mov dword [esi + 0x2458], edx
cmp eax, ecx
jl 0x420720
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
push 0x4a2734
lea ecx, [esp + 0x48]
mov dword [esi + 0x1e70], edx
mov dword [esi + 0x1e74], eax
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x44]
mov dword [esp + 0x38], 0
push ecx
lea ecx, [esi + 0x13ec]
call fcn.0041e1a0
mov edx, dword [esp + 0x44]
mov edi, dword [sym.imp.MSVCRT.dll__access]
push 0
push edx
call edi
or ebp, 0xffffffff
add esp, 8
cmp eax, ebp
je 0x4205b3
mov eax, dword [esi + 0x1e6c]
test eax, eax
je 0x4205a8
push str.OnVerCfgData___delete_newcfg_n
push eax
call fcn.0041c9d0
add esp, 8
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x44]
push 0
push ecx
call edi
add esp, 8
cmp eax, ebp
jne 0x42061f
mov edx, dword [esp + 0x44]
push 0x4736e4
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x4205fd
mov esi, dword [esi + 0x1e6c]
test esi, esi
je 0x420713
push str.OnVerCfgData___creat_newcfg_fail__n
push esi
call fcn.0041cbc0
add esp, 8
jmp 0x420713
mov eax, dword [esi + 0x1e6c]
test eax, eax
je 0x420615
push str.OnVerCfgData___creat_newcfg__n
push eax
call fcn.0041c9d0
add esp, 8
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, dword [esp + 0x44]
lea ebx, [esi + 0x12d0]
push 1
push eax
mov ecx, ebx
call fcn.00421520
cmp eax, ebp
jne 0x420658
mov esi, dword [esi + 0x1e6c]
test esi, esi
je 0x420713
push str.OnVerCfgData___OpenFile_newcfg_fail:___n
push esi
call fcn.0041cbc0
add esp, 8
jmp 0x420713
mov ecx, dword [esi + 0x1e70]
push ecx
push 0x4739c8
push 0x4739c0
mov ecx, ebx
call fcn.00421850
mov edx, dword [esi + 0x1e74]
mov ecx, ebx
push edx
push 0x473690
push str.PicNum
call fcn.00421850
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x1e74]
xor edi, edi
test eax, eax
jle 0x4206ec
mov ebp, dword [sym.imp.MSVCRT.dll__snprintf]
cmp edi, 0x5dc
jge 0x4206e9
lea eax, [edi + 0x65]
lea ecx, [esp + 0x10]
push eax
push str.Pic_d
push 0x1f
push ecx
call ebp
movsx edx, byte [edi + esi + 0x1e78]
add esp, 0x10
lea eax, [esp + 0x10]
mov ecx, ebx
push edx
push 0x4739c8
push eax
call fcn.00421850
mov eax, dword [esi + 0x1e74]
inc edi
cmp edi, eax
jl 0x4206a7
or ebp, 0xffffffff
mov ecx, ebx
call fcn.00421640
mov eax, dword [esi + 0x1e6c]
test eax, eax
je 0x42070b
push str.OnVerCfgData___newcfg_succ_n
push eax
call fcn.0041c9d0
add esp, 8
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
lea ecx, [esp + 0x44]
mov dword [esp + 0x38], ebp
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x14