Function at 0x402870
Capabilities:
Delete file
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4043ac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x818
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 0x40717c
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push str.djbv
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
push 0
push 0
push 0
push 0
push 0
push str.dfgd0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0
push 0
push 0
push 0
push str.sdfe
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x429]
mov byte [esp + 0x428], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, ebx
stosb byte es:[edi], al
call fcn.004027b0
test eax, eax
jne 0x402ac6
mov ecx, ebx
call fcn.004039c0
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, 0x4071fc
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x402972
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
mov esi, 0x4071fc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], 0
lea ecx, [esp + 0x14]
lea edx, [esp + 0x13]
push ecx
mov dword [esp + 0x834], 0
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
push 0x407378
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov ecx, ebx
call fcn.00402e60
test eax, eax
jne 0x4029c2
push 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x834], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x402ac6
mov edi, str._main_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push eax
push str._main_
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp eax, dword [ecx]
jne 0x402a15
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x402ac6
mov al, byte [ecx - 1]
test al, al
je 0x402abc
cmp al, 0xff
je 0x402abc
dec al
mov byte [ecx - 1], al
jmp 0x402ac6
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x402a23
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, dword [esp + 0x1c]
lea edi, [esp + 0x428]
mov edx, ecx
lea eax, [esp + 0x428]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x407158
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
add esp, 8
test esi, esi
je 0x402aa2
push 0xa
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
je 0x402aa2
mov ecx, eax
lea edi, [esp + 0x28]
sub ecx, esi
add esi, 2
sub ecx, 2
xor eax, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x28]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x402aa2
lea eax, [esp + 0x28]
push 0xc
push eax
mov ecx, ebx
call fcn.00402ae0
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x402ac6
mov al, byte [ecx - 1]
test al, al
je 0x402abc
cmp al, 0xff
je 0x402abc
dec al
mov byte [ecx - 1], al
jmp 0x402ac6
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x828]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x824
ret