Function at 0x412a86
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47421d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb88
push ebx
push esi
push edi
push 0x64
mov esi, ecx
push 0
push 0x404
mov dword [esp + 0x1c], esi
push dword [esi + 0x324]
call dword [sym.imp.USER32.dll_PostMessageA]
push esi
lea eax, [esp + 0x164]
push 0x481d54
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x160]
mov edx, str.MUPINFO
call fcn.0040da1e
lea edx, [esp + 0xc]
mov dword [esp + 0x1c], eax
mov ecx, eax
call fcn.004212af
push 0xa
xor ebx, ebx
mov dword [esp + 0x18], eax
pop edi
mov dword [esp + 0x18], edi
test eax, eax
jle 0x412c33
mov edx, dword [esp + 0xc]
mov ecx, str.C75A7F71_797A_11d2_8255_00A02455A490
push eax
call fcn.004366b8
and dword [esp + 0x44], ebx
xorps xmm0, xmm0
movdqu xmmword [esp + 0x34], xmm0
mov dword [esp + 0x30], vtable.IniDataEnum.0
and dword [esp + 0xba0], ebx
push ecx
push dword [esp + 0x1c]
lea ecx, [esp + 0x38]
call fcn.0040b339
push dword [esp + 0x14]
push dword [esp + 0x10]
push eax
call fcn.00443520
add esp, 0xc
cmp dword [esp + 0xc], ebx
je 0x412b6b
push dword [esp + 0xc]
call fcn.0043e094
pop ecx
lea ecx, [esp + 0x2c]
call fcn.0040b39b
test al, al
je 0x412c02
lea ecx, [esp + 0x2c]
call fcn.0040b6b2
lea ecx, [esp + 0x2c]
call fcn.0040b701
lea ecx, [esp + 0x2c]
call fcn.0040b724
test eax, eax
je 0x412bad
lea ecx, [esp + 0x2c]
inc edi
call fcn.0040b724
test eax, eax
jne 0x412b9b
mov dword [esp + 0x18], edi
lea ecx, [esp + 0x2c]
call fcn.0040b701
jmp 0x412bfe
mov edx, eax
lea ecx, [esp + 0x160]
call fcn.0040da1e
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, esi
call fcn.00420df8
push esi
call fcn.0041ed70
mov esi, dword [esp + 0x14]
inc ebx
pop ecx
push edi
push ebx
push 0x404
push dword [esi + 0x324]
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 0x2c]
call fcn.0040b724
test eax, eax
jne 0x412bb8
mov edi, dword [esp + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push edi
call fcn.0041ed70
or dword [esp + 0xba0], 0xffffffff
pop ecx
lea ecx, [esp + 0x2c]
call fcn.0040b16e
lea eax, [esp + 0x160]
and dword [esp + 0x28], 0
mov dword [esp + 0x20], eax
lea edi, [esp + 0x780]
lea eax, [esi + 0x208]
mov esi, str._1GameHistory.dat
push 0xf1
mov dword [esp + 0x28], eax
lea eax, [esp + 0x797]
push 0
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call fcn.00443c10
mov esi, str._1MPG.dat
lea edi, [esp + 0x890]
add esp, 0xc
lea eax, [esp + 0x88f]
movsd dword es:[edi], dword [esi]
push 0xf9
push 0
push eax
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call fcn.00443c10
add esp, 0xc
lea edi, [esp + 0x988]
mov esi, str._1_theme_2globalmenudata3.fnt
lea eax, [esp + 0x9aa]
push 8
pop ecx
rep movsd dword es:[edi], dword [esi]
push 0xe2
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.00443c10
add esp, 0xc
mov byte [esp + 0xa8c], 0
lea eax, [esp + 0xa8d]
push 0x103
push 0
push eax
call fcn.00443c10
mov esi, str._1Logger
lea edi, [esp + 0x37c]
add esp, 0xc
lea eax, [esp + 0x37a]
movsd dword es:[edi], dword [esi]
push 0xfa
push 0
push eax
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.00443c10
mov esi, str._1Upgrades
lea edi, [esp + 0x480]
add esp, 0xc
lea eax, [esp + 0x480]
movsd dword es:[edi], dword [esi]
push 0xf8
push 0
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00443c10
mov esi, str._1Upgrade
lea edi, [esp + 0x584]
add esp, 0xc
lea eax, [esp + 0x583]
movsd dword es:[edi], dword [esi]
push 0xf9
push 0
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
push eax
call fcn.00443c10
add esp, 0xc
mov byte [esp + 0x67c], 0
lea eax, [esp + 0x67d]
push 0x103
push 0
push eax
call fcn.00443c10
add esp, 0xc
lea esi, [esp + 0x370]
cmp byte [esp + 0x370], 0
mov edi, 0x104
je 0x412de4
push 0x103
lea eax, [esp + 0x26d]
mov byte [esp + 0x26c], 0
push 0
push eax
call fcn.00443c10
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push edi
lea eax, [esp + 0x270]
push eax
push 0
push 0
push esi
push 0x2400
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
xor dl, dl
lea ecx, [esp + 0x268]
call fcn.00420e1b
add esi, edi
cmp byte [esi], 0
jne 0x412d92
mov edi, dword [esp + 0x18]
add ebx, 2
mov eax, dword [esp + 0x10]
push edi
push ebx
push 0x404
push dword [eax + 0x324]
call dword [sym.imp.USER32.dll_PostMessageA]
cmp byte [esp + 0x780], 0
lea esi, [esp + 0x780]
je 0x412e6a
push 0x103
lea eax, [esp + 0x5d]
mov byte [esp + 0x5c], 0
push 0
push eax
call fcn.00443c10
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push 0x104
lea eax, [esp + 0x60]
push eax
push 0
push 0
push esi
push 0x2400
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x58]
call fcn.00420df8
add esi, 0x104
cmp byte [esi], 0
jne 0x412e13
call fcn.00412495
mov esi, eax
test esi, esi
je 0x412e8c
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412e7a
sub ecx, edx
je 0x412e8c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call fcn.0041ed70
pop ecx
push edi
lea eax, [ebx + 2]
push eax
mov eax, dword [esp + 0x18]
push 0x405
push dword [eax + 0x324]
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [esp + 0xb94]
xor eax, eax
pop edi
pop esi
inc eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret