Function at 0x40d100
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3dc
mov eax, dword [0x6a73f0]
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.00444140
push str.MYMC00000001
mov ebx, eax
mov ecx, 0x5b15a4
push 0x80000002
mov dword [ebp - 0x3d8], ebx
call fcn.0040a030
mov dword [ebp - 0x3dc], eax
test eax, eax
jne 0x40d16c
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.00575c70
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 0x40d2c8
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.00562100
push 0x11
lea eax, [ebp - 0xcc]
push eax
lea esi, [edi + 0x78]
push esi
call fcn.005159c0
push str..IniPROFILEID.ini
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x1cc]
push str.PassWord
push eax
call fcn.00562100
add esp, 0x48
lea eax, [ebp - 0xcc]
add edi, 0x89
push 0x11
push eax
push edi
call fcn.005159c0
push 0x11
lea eax, [ebp - 0xcc]
push esi
push eax
call fcn.005159c0
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.0040a120
push 0x11
lea eax, [ebp - 0xcc]
push edi
push eax
call fcn.005159c0
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.0040a120
mov bl, byte [ebp + 8]
cmp bl, 3
jne 0x40d2c0
push str..IniPROFILEID.ini
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [ebp - 0x3d0]
jmp 0x40d2cb
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 + 0x78]
push 0x11
push 1
push eax
push str.MYMC00000001
call fcn.0040a090
push eax
push esi
call fcn.005159c0
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, 0x89
push 0x11
push 1
push eax
push str.MYMC00000001
call fcn.0040a090
push eax
push edi
call fcn.005159c0
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 0x40d3b1
test dl, dl
je 0x40d3ad
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40d3b1
add eax, 2
add ecx, 2
test dl, dl
jne 0x40d391
xor eax, eax
jmp 0x40d3b6
sbb eax, eax
or eax, 1
test eax, eax
je 0x40d49b
mov ecx, 0x585acc
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40d3e5
test dl, dl
je 0x40d3e1
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40d3e5
add eax, 2
add ecx, 2
test dl, dl
jne 0x40d3c5
xor eax, eax
jmp 0x40d3ea
sbb eax, eax
or eax, 1
test eax, eax
je 0x40d49b
mov ecx, str.NULL
mov eax, esi
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40d420
test dl, dl
je 0x40d41c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40d420
add eax, 2
add ecx, 2
test dl, dl
jne 0x40d400
xor eax, eax
jmp 0x40d425
sbb eax, eax
or eax, 1
test eax, eax
je 0x40d49b
mov eax, str.NULL
mov edi, edi
mov cl, byte [edi]
cmp cl, byte [eax]
jne 0x40d450
test cl, cl
je 0x40d44c
mov cl, byte [edi + 1]
cmp cl, byte [eax + 1]
jne 0x40d450
add edi, 2
add eax, 2
test cl, cl
jne 0x40d430
xor eax, eax
jmp 0x40d455
sbb eax, eax
or eax, 1
test eax, eax
je 0x40d49b
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 0x40d480
mov bh, byte [ebp - 0x3cf]
mov bl, byte [ebp - 0x3d0]
jmp 0x40d4cb
mov eax, dword [ebp - 0x3d0]
mov ecx, 0x6cb110
inc eax
push eax
push 0xa4e
call fcn.004d1220
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 0x40d4f0
push pe_nt_image_headers32
push 0
push esi
call sub.MSVCR120.dll_memset
add esp, 0xc
jmp 0x40d4f2
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 0x40d500
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, 0x926
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.00575c70
mov esp, ebp
pop ebp
ret 4