Function at 0x4c472c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd00
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x300], ebx
mov dword [ebp - 0x2f8], ebx
mov dword [ebp - 0x2fc], ebx
mov dword [ebp - 0x2f4], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 0x19], cl
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4c4fc4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4f5378]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [0x4f5930]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [0x4f56f4]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [ebp - 0x18]
call fcn.0040af30
test al, al
je 0x4c4f8b
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x2f0]
call fcn.0040384c
mov edx, 1
lea eax, [ebp - 0x2f0]
call fcn.00403efc
call fcn.00403054
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x38], eax
lea eax, [ebp - 8]
call fcn.004056dc
jmp 0x4c4b08
lea edx, [ebp - 0x3a]
lea eax, [ebp - 0x2f0]
call fcn.00403bd8
call fcn.00403054
inc ebx
lea eax, [ebp - 0x2f4]
movzx edx, byte [ebp - 0x3a]
call fcn.004058c4
mov edx, dword [ebp - 0x2f4]
lea eax, [ebp - 8]
call fcn.004059a8
mov esi, dword [ebp - 8]
test esi, esi
je 0x4c481d
sub esi, 4
mov esi, dword [esi]
dec esi
jle 0x4c4848
mov eax, dword [ebp - 8]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x4c4837
mov eax, dword [ebp - 0x50]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x50]
cmp byte [eax + edx - 2], 0xd
sete byte [ebp - 0x51]
jmp 0x4c484c
mov byte [ebp - 0x51], 0
cmp byte [ebp - 0x51], 0
je 0x4c487a
mov eax, dword [ebp - 8]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x4c4869
mov eax, dword [ebp - 0x58]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x58]
cmp byte [eax + edx - 1], 0xa
sete byte [ebp - 0x59]
jmp 0x4c487e
mov byte [ebp - 0x59], 0
cmp byte [ebp - 0x59], 0
je 0x4c488d
mov byte [ebp - 0x6e], 1
jmp 0x4c490f
mov eax, dword [ebp - 8]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
je 0x4c48a4
mov eax, dword [ebp - 0x60]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 1
jle 0x4c48d2
mov eax, dword [ebp - 8]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x4c48c1
mov eax, dword [ebp - 0x64]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x64]
cmp byte [eax + edx - 2], 0xa
sete byte [ebp - 0x65]
jmp 0x4c48d6
mov byte [ebp - 0x65], 0
cmp byte [ebp - 0x65], 0
je 0x4c4904
mov eax, dword [ebp - 8]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x4c48f3
mov eax, dword [ebp - 0x6c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x6c]
cmp byte [eax + edx - 1], 0xd
sete byte [ebp - 0x6d]
jmp 0x4c4908
mov byte [ebp - 0x6d], 0
movzx eax, byte [ebp - 0x6d]
mov byte [ebp - 0x6e], al
cmp byte [ebp - 0x6e], 0
je 0x4c491b
mov byte [ebp - 0x6f], 1
jmp 0x4c4931
lea eax, [ebp - 0x2f0]
call fcn.00403af0
call fcn.00403054
cmp ebx, eax
sete byte [ebp - 0x6f]
cmp byte [ebp - 0x6f], 0
je 0x4c4b08
mov byte [ebp - 0x45], 0
mov edi, 1
mov eax, dword [ebp - 0x10]
call fcn.00406c70
inc eax
push eax
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x4c470c]
call fcn.00406e2c
add esp, 4
mov eax, dword [ebp - 0x38]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 0x10]
lea eax, [edx + eax*4]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x4c4fdc
call fcn.00405cb8
mov ecx, eax
dec ecx
mov edx, edi
mov eax, dword [ebp - 8]
call fcn.00405bd4
mov edx, dword [ebp - 8]
mov eax, 0x4c4fdc
call fcn.00405cb8
mov ecx, eax
lea eax, [ebp - 8]
mov edx, edi
call fcn.00405c14
mov eax, dword [ebp - 0x38]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 0x10]
lea eax, [edx + eax*4 + 4]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x4c4fdc
call fcn.00405cb8
mov ecx, eax
dec ecx
mov edx, edi
mov eax, dword [ebp - 8]
call fcn.00405bd4
mov edx, dword [ebp - 8]
mov eax, 0x4c4fdc
call fcn.00405cb8
mov ecx, eax
lea eax, [ebp - 8]
mov edx, edi
call fcn.00405c14
mov edx, dword [ebp - 8]
mov eax, 0x4c4fdc
call fcn.00405cb8
dec eax
inc eax
jle 0x4c4a08
mov edx, dword [ebp - 8]
mov eax, 0x4c4fdc
call fcn.00405cb8
mov dword [ebp - 0x40], eax
jmp 0x4c4a3e
mov edx, dword [ebp - 8]
mov eax, 0x4c4fe8
call fcn.00405cb8
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 8]
mov eax, 0x4c4ff4
call fcn.00405cb8
cmp eax, dword [ebp - 0x40]
jge 0x4c4a3a
mov edx, dword [ebp - 8]
mov eax, 0x4c4ff4
call fcn.00405cb8
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x45], 1
mov eax, dword [ebp - 0x38]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 0x10]
lea eax, [edx + eax*4 + 8]
push eax
mov ecx, dword [ebp - 0x40]
dec ecx
mov edx, edi
mov eax, dword [ebp - 8]
call fcn.00405bd4
cmp byte [ebp - 0x45], 0
jne 0x4c4aef
lea eax, [ebp - 8]
mov ecx, dword [ebp - 0x40]
mov edx, edi
call fcn.00405c14
mov edx, dword [ebp - 8]
mov eax, 0x4c4fdc
call fcn.00405cb8
dec eax
inc eax
jle 0x4c4a94
mov edx, dword [ebp - 8]
mov eax, 0x4c4fdc
call fcn.00405cb8
mov dword [ebp - 0x40], eax
jmp 0x4c4ac6
mov edx, dword [ebp - 8]
mov eax, 0x4c4fe8
call fcn.00405cb8
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 8]
mov eax, 0x4c4ff4
call fcn.00405cb8
cmp eax, dword [ebp - 0x40]
jge 0x4c4ac6
mov edx, dword [ebp - 8]
mov eax, 0x4c4ff4
call fcn.00405cb8
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x38]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 0x10]
lea eax, [edx + eax*4 + 0xc]
push eax
mov ecx, dword [ebp - 0x40]
dec ecx
mov edx, edi
mov eax, dword [ebp - 8]
call fcn.00405bd4
lea eax, [ebp - 8]
mov ecx, dword [ebp - 0x40]
mov edx, edi
call fcn.00405c14
mov eax, dword [ebp - 0x38]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 0x10]
mov byte [edx + eax*4 + 0x10], 0
lea eax, [ebp - 8]
call fcn.004056dc
inc dword [ebp - 0x38]
lea eax, [ebp - 0x2f0]
call fcn.00403af0
call fcn.00403054
cmp ebx, eax
jl 0x4c47e0
lea eax, [ebp - 0x2f0]
call fcn.00403914
call fcn.00403054
cmp byte [ebp - 0x19], 0
je 0x4c4b44
mov eax, dword [ebp - 0x18]
call fcn.00405b6c
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0xc]
call fcn.004056dc
xor eax, eax
mov dword [ebp - 0x38], eax
jmp 0x4c4f79
xor eax, eax
push ebp
push 0x4c4f72
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004bd828
dec eax
sub al, 9
jb 0x4c4b78
call fcn.00405100
jmp 0x4c4f8b
mov eax, dword [ebp - 0x38]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 0xc]
call fcn.00405b04
je 0x4c4ca9
mov eax, dword [0x4f57a0]
cmp dword [eax], 0
je 0x4c4ba1
call fcn.004bb814
mov dl, 1
mov eax, dword [0x419b88]
call fcn.00404770
mov edx, dword [0x4f57a0]
mov dword [edx], eax
mov eax, dword [0x4f5378]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [0x4f5930]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [0x4f56f4]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 8]
mov byte [ebp - 0x1a], 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x1a]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x31], 0
mov eax, dword [0x4f57b8]
mov edx, dword [ebp - 0x38]
lea edx, [edx + edx*4]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + edx*4]
call fcn.00405730
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4ef510]
call fcn.004ef578
mov dword [0x4fb284], eax
mov eax, dword [0x4fb284]
call fcn.004ef7c8
xor eax, eax
push ebp
push 0x4c4ca2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
lea edx, [ebp - 0x2c]
mov eax, dword [0x4f56c0]
mov eax, dword [eax]
movzx ecx, byte [ebp - 0x31]
call fcn.004e0610
test al, al
jne 0x4c4c62
call fcn.00405100
call fcn.00405100
jmp 0x4c4f8b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c4ca9
cmp dword [0x4fb284], 0
je 0x4c4c8b
cmp dword [0x4fb284], 0
je 0x4c4c8b
mov eax, dword [0x4fb284]
call fcn.004252bc
mov eax, dword [0x4fb284]
call fcn.004252c4
mov eax, dword [0x4f56f0]
mov eax, dword [eax]
call fcn.00476ef4
ret
mov eax, dword [0x4f56f4]
mov eax, dword [eax]
mov edi, dword [eax + 8]
dec edi
test edi, edi
jl 0x4c4cde
inc edi
xor ebx, ebx
mov eax, dword [0x4f56f4]
mov eax, dword [eax]
mov edx, ebx
call fcn.0041be0c
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov byte [eax + 0x3c], 0
mov eax, dword [ebp - 0x20]
mov byte [eax + 0x71], 0
inc ebx
dec edi
jne 0x4c4cbb
mov eax, dword [ebp - 0x10]
call fcn.00406c70
mov edi, eax
dec edi
test edi, edi
jl 0x4c4df1
inc edi
xor esi, esi
lea eax, [esi + esi*4]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 0x38]
lea edx, [edx + edx*4]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + edx*4]
call fcn.00405b04
jne 0x4c4de9
lea eax, [esi + esi*4]
mov edx, dword [ebp - 0x10]
cmp byte [edx + eax*4 + 0x10], 0
jne 0x4c4de9
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [0x4f56f4]
mov eax, dword [eax]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4c4de9
inc eax
mov dword [ebp - 0x4c], eax
xor ebx, ebx
mov eax, dword [0x4f56f4]
mov eax, dword [eax]
mov edx, ebx
call fcn.0041be0c
mov eax, dword [eax + 0x18]
lea edx, [ebp - 0x2f8]
call fcn.0040a1c4
mov eax, dword [ebp - 0x2f8]
push eax
lea eax, [esi + esi*4]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + eax*4 + 4]
lea edx, [ebp - 0x2fc]
call fcn.0040a1c4
mov edx, dword [ebp - 0x2fc]
pop eax
call fcn.00405b04
jne 0x4c4ddf
mov eax, dword [0x4f56f4]
mov eax, dword [eax]
mov edx, ebx
call fcn.0041be0c
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov byte [eax + 0x3c], 1
mov eax, dword [ebp - 0x20]
mov byte [eax + 0x71], 0
mov eax, dword [ebp - 0x20]
add eax, 0x34
lea edx, [esi + esi*4]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + edx*4 + 8]
call fcn.00405730
mov eax, dword [ebp - 0x20]
add eax, 0x38
lea edx, [esi + esi*4]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + edx*4 + 0xc]
call fcn.00405730
lea eax, [esi + esi*4]
mov edx, dword [ebp - 0x10]
mov byte [edx + eax*4 + 0x10], 1
jmp 0x4c4de9
inc ebx
dec dword [ebp - 0x4c]
jne 0x4c4d43
inc esi
dec edi
jne 0x4c4cf4
cmp dword [ebp - 0x20], 0
jne 0x4c4e32
lea ecx, [ebp - 0x300]
mov eax, dword [0x4fb280]
mov eax, dword [eax + 0x360]
mov edx, 0x4c5000
call fcn.00481428
mov eax, dword [ebp - 0x300]
call fcn.00448c24
mov eax, dword [ebp - 0x14]
xor edx, edx
mov dword [eax + 0x294], edx
call fcn.00405100
jmp 0x4c4f8b
push 0x12d
lea eax, [ebp - 0x1a1]
push eax
push 0x4c504c
push 0x4c5050
push 0x4c5058
call sub.kernel32.dll_GetProfileStringA
lea eax, [ebp - 4]
lea edx, [ebp - 0x1a1]
mov ecx, 0x12d
call fcn.0040594c
mov edx, dword [ebp - 4]
mov eax, 0x4c5068
call fcn.00405cb8
mov ebx, eax
test ebx, ebx
jne 0x4c4e93
mov eax, dword [ebp - 4]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
je 0x4c4e8f
mov eax, dword [ebp - 0x74]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x74], eax
mov ebx, dword [ebp - 0x74]
inc ebx
lea eax, [ebp - 4]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00405bd4
lea eax, [ebp - 0x1a1]
mov edx, dword [ebp - 4]
call fcn.0040b554
call fcn.004e1b18
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
and eax, 1
cmp eax, 1
sete byte [ebp - 0x39]
cmp byte [ebp - 0x39], 0
je 0x4c4f0b
mov eax, dword [0x4f56f4]
mov eax, dword [eax]
mov edi, dword [eax + 8]
dec edi
test edi, edi
jl 0x4c4f0b
inc edi
xor ebx, ebx
mov eax, dword [0x4f56f4]
mov eax, dword [eax]
mov edx, ebx
call fcn.0041be0c
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x74], 0
je 0x4c4f07
mov eax, dword [ebp - 0x20]
add eax, 0x20
call fcn.004056dc
inc ebx
dec edi
jne 0x4c4ee2
mov eax, dword [0x4f559c]
mov eax, dword [eax]
call fcn.004c2a88
xor eax, eax
push ebp
push 0x4c4f46
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
call fcn.004d4b4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c4f4d
mov eax, dword [0x4f559c]
mov eax, dword [eax]
call fcn.00473320
ret
mov eax, dword [ebp - 0x10]
call fcn.00406c70
dec eax
cmp eax, dword [ebp - 0x38]
jge 0x4c4b56
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c4fcb
lea eax, [ebp - 0x300]
mov edx, 4
call fcn.00405700
lea eax, [ebp - 0x10]
mov edx, dword [0x4c470c]
call fcn.00406e38
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405700
ret