Function at 0x40d180
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3dc
mov eax, dword [0x6a7420]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
mov ecx, 0x69cd90
push 0xa
mov dword [ebp - 0x3d0], edi
call fcn.00444070
push str.MYMC00000001
mov ebx, eax
mov ecx, 0x5b15a4
push 0x80000002
mov dword [ebp - 0x3d8], ebx
call fcn.0040a050
mov dword [ebp - 0x3dc], eax
test eax, eax
jne 0x40d1ec
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax + 8]
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00575b90
mov esp, ebp
pop ebp
ret 4
push esi
push 0x585f98
push str..IniPROFILEID.ini
call dword [sym.imp.MSVCR120.dll_fopen]
add esp, 8
test eax, eax
je 0x40d348
push eax
call dword [sym.imp.MSVCR120.dll_fclose]
push 0xc8
lea eax, [ebp - 0xcc]
push 0
push eax
call sub.MSVCR120.dll_memset
movzx ebx, byte [ebp + 8]
lea eax, [ebp - 0x1cc]
push ebx
push str.ACCOUNT_d
push eax
call dword [sym.imp.MSVCR120.dll_sprintf]
push str..IniPROFILEID.ini
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x1cc]
push str.UserName
push eax
call fcn.00562060
push 0x11
lea eax, [ebp - 0xcc]
push eax
lea esi, [edi + 0x7c]
push esi
call fcn.00515be0
push str..IniPROFILEID.ini
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x1cc]
push str.PassWord
push eax
call fcn.00562060
add esp, 0x48
lea eax, [ebp - 0xcc]
add edi, 0x8d
push 0x11
push eax
push edi
call fcn.00515be0
push 0x11
lea eax, [ebp - 0xcc]
push esi
push eax
call fcn.00515be0
mov esi, dword [sym.imp.MSVCR120.dll_sprintf]
lea eax, [ebp - 0x1cc]
push ebx
push str.MSOMSO
push str._s_UserName__d
push eax
call esi
add esp, 0x28
lea eax, [ebp - 0xcc]
mov ecx, 0x5b15a4
push eax
push 1
lea eax, [ebp - 0x1cc]
push eax
push str.MYMC00000001
call fcn.0040a140
push 0x11
lea eax, [ebp - 0xcc]
push edi
push eax
call fcn.00515be0
push ebx
push str.MSOMSO
lea eax, [ebp - 0x1cc]
push str._s_PassWord__d
push eax
call esi
add esp, 0x1c
lea eax, [ebp - 0xcc]
mov ecx, 0x5b15a4
push eax
push 1
lea eax, [ebp - 0x1cc]
push eax
push str.MYMC00000001
call fcn.0040a140
mov bl, byte [ebp + 8]
cmp bl, 3
jne 0x40d340
push str..IniPROFILEID.ini
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [ebp - 0x3d0]
jmp 0x40d34b
mov bl, byte [ebp + 8]
movzx eax, bl
mov ebx, dword [sym.imp.MSVCR120.dll_sprintf]
push eax
push str.MSOMSO
mov dword [ebp - 0x3d0], eax
lea eax, [ebp - 0x3cc]
push str._s_UserName__d
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x3cc]
mov ecx, 0x5b15a4
lea esi, [edi + 0x7c]
push 0x11
push 1
push eax
push str.MYMC00000001
call fcn.0040a0b0
push eax
push esi
call fcn.00515be0
push dword [ebp - 0x3d0]
lea eax, [ebp - 0x3cc]
push str.MSOMSO
push str._s_PassWord__d
push eax
call ebx
add esp, 0x1c
lea eax, [ebp - 0x3cc]
mov ecx, 0x5b15a4
add edi, 0x8d
push 0x11
push 1
push eax
push str.MYMC00000001
call fcn.0040a0b0
push eax
push edi
call fcn.00515be0
push 0xfe
lea eax, [ebp - 0x2cb]
mov byte [ebp - 0x2cc], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0x18
mov byte [ebp - 0x3d2], 0xe6
mov byte [ebp - 0x3d3], 0xe6
mov ecx, 0x585acc
mov byte [ebp - 0x3d1], 0xe6
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40d431
test dl, dl
je 0x40d42d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40d431
add eax, 2
add ecx, 2
test dl, dl
jne 0x40d411
xor eax, eax
jmp 0x40d436
sbb eax, eax
or eax, 1
test eax, eax
je 0x40d51b
mov ecx, 0x585acc
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40d465
test dl, dl
je 0x40d461
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40d465
add eax, 2
add ecx, 2
test dl, dl
jne 0x40d445
xor eax, eax
jmp 0x40d46a
sbb eax, eax
or eax, 1
test eax, eax
je 0x40d51b
mov ecx, str.NULL
mov eax, esi
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40d4a0
test dl, dl
je 0x40d49c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40d4a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x40d480
xor eax, eax
jmp 0x40d4a5
sbb eax, eax
or eax, 1
test eax, eax
je 0x40d51b
mov eax, str.NULL
mov edi, edi
mov cl, byte [edi]
cmp cl, byte [eax]
jne 0x40d4d0
test cl, cl
je 0x40d4cc
mov cl, byte [edi + 1]
cmp cl, byte [eax + 1]
jne 0x40d4d0
add edi, 2
add eax, 2
test cl, cl
jne 0x40d4b0
xor eax, eax
jmp 0x40d4d5
sbb eax, eax
or eax, 1
test eax, eax
je 0x40d51b
mov word [ebp - 0x3cf], 0xff82
lea ecx, [ebp - 0x2cc]
mov ax, word [ebp - 0x3cf]
sub ecx, esi
mov byte [ebp - 0x3d1], 0x82
mov word [ebp - 0x3d0], ax
nop
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x40d500
mov bh, byte [ebp - 0x3cf]
mov bl, byte [ebp - 0x3d0]
jmp 0x40d54b
mov eax, dword [ebp - 0x3d0]
mov ecx, 0x6cb3b8
inc eax
push eax
push 0xa4e
call fcn.004d1140
push eax
lea eax, [ebp - 0x2cc]
push eax
call ebx
mov bl, byte [ebp - 0x3d2]
add esp, 0xc
mov bh, byte [ebp - 0x3d3]
push pe_nt_image_headers32
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
je 0x40d570
push pe_nt_image_headers32
push 0
push esi
call sub.MSVCR120.dll_memset
add esp, 0xc
jmp 0x40d572
xor esi, esi
lea ecx, [ebp - 0x2cc]
lea edx, [esi + 4]
mov eax, ecx
sub edx, eax
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x40d580
movzx ecx, bl
shl ecx, 8
movzx eax, bh
or ecx, eax
movzx eax, byte [ebp - 0x3d1]
shl ecx, 8
or ecx, eax
mov dword [esi], ecx
mov ecx, dword [ebp - 0x3d8]
add ecx, 0x934
push esi
mov eax, dword [ecx]
call dword [eax + 8]
push dword [ebp - 0x3dc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, 1
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.00575b90
mov esp, ebp
pop ebp
ret 4