Function at 0x4227c7
Capabilities:
Delete file
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x452560
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x46d978]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x46d978]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
mov edi, 0x45f645
push edi
lea ecx, [esp + 0x34]
mov dword [esp + 0xbc], ebx
call fcn.004012d4
push edi
lea ecx, [esp + 0x1c]
mov byte [esp + 0xbc], 1
call fcn.004012d4
push edi
lea ecx, [esp + 0x64]
mov byte [esp + 0xbc], 2
call fcn.004012d4
push edi
lea ecx, [esp + 0x4c]
mov byte [esp + 0xbc], 3
call fcn.004012d4
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esi + 0x20c]
mov byte [esp + 0xcc], 4
call fcn.00420864
cmp dword [esp + 0x40], 8
je 0x4228bb
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x6c]
push eax
push 1
jmp 0x4228d8
cmp dword [esp + 0x28], 8
je 0x4228e4
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x6c]
push eax
push 2
mov ecx, esi
call fcn.00423492
jmp 0x4229c5
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x18]
cmp edi, 0x10
cmovae ecx, ebx
mov edx, ecx
lea eax, [edx + 1]
mov dword [esp + 0x14], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x4228ff
sub edx, dword [esp + 0x14]
cmp edx, 8
jne 0x422918
call fcn.00421ef2
test al, al
jne 0x42293d
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x6c]
push eax
push 4
mov ecx, esi
call fcn.00423492
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x18]
cmp dword [esp + 0x44], 0x10
lea eax, [esp + 0x30]
cmovae eax, dword [esp + 0x30]
test eax, eax
jne 0x422974
cmp byte [esi + 0x97], al
je 0x422974
cmp dword [esp + 0x44], 0x10
lea eax, [esp + 0x30]
cmovae eax, dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x18]
cmp edi, 0x10
lea eax, [esp + 0x18]
cmovae eax, ebx
test eax, eax
jne 0x42299b
cmp byte [esi + 0x97], al
je 0x42299b
cmp edi, 0x10
lea eax, [esp + 0x18]
cmovae eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esi + 0x3c]
lea eax, [esp + 0x30]
xor ebx, ebx
cmp ecx, eax
je 0x4229b1
push 0xffffffffffffffff
push ebx
push eax
call fcn.004013e1
lea ecx, [esi + 0x54]
lea eax, [esp + 0x18]
cmp ecx, eax
je 0x4229c5
push 0xffffffffffffffff
push ebx
push eax
call fcn.004013e1
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0xa4], 0xf
mov dword [esp + 0xa0], ebx
mov byte [esp + 0x90], bl
mov byte [esp + 0xb8], 5
cmp dword [esi + 0x38], ebx
jne 0x422a13
lea eax, [esi + 0xe0]
cmp dword [eax + 0x14], 0x10
jb 0x422a04
mov eax, dword [eax]
push ecx
push eax
push dword [0x46fa50]
mov ecx, esi
call fcn.00423027
add esi, 0xe0
cmp dword [esi + 0x14], 0x10
jb 0x422a21
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x90]
call fcn.00401303
lea ecx, [esp + 0x48]
call fcn.00401303
lea ecx, [esp + 0x60]
call fcn.00401303
lea ecx, [esp + 0x18]
call fcn.00401303
lea ecx, [esp + 0x30]
call fcn.00401303
lea ecx, [esp + 0x78]
call fcn.00401303
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.0042d3d2
mov esp, ebp
pop ebp
ret