Function at 0x4c4620
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 0x4c4ebf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4f3368]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [0x4f3918]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [0x4f36e4]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [ebp - 0x18]
call fcn.0040af30
test al, al
je 0x4c4e86
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 0x4c49fc
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 0x4c4711
sub esi, 4
mov esi, dword [esi]
dec esi
jle 0x4c473c
mov eax, dword [ebp - 8]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x4c472b
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 0x4c4740
mov byte [ebp - 0x51], 0
cmp byte [ebp - 0x51], 0
je 0x4c476e
mov eax, dword [ebp - 8]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x4c475d
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 0x4c4772
mov byte [ebp - 0x59], 0
cmp byte [ebp - 0x59], 0
je 0x4c4781
mov byte [ebp - 0x6e], 1
jmp 0x4c4803
mov eax, dword [ebp - 8]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
je 0x4c4798
mov eax, dword [ebp - 0x60]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 1
jle 0x4c47c6
mov eax, dword [ebp - 8]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x4c47b5
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 0x4c47ca
mov byte [ebp - 0x65], 0
cmp byte [ebp - 0x65], 0
je 0x4c47f8
mov eax, dword [ebp - 8]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x4c47e7
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 0x4c47fc
mov byte [ebp - 0x6d], 0
movzx eax, byte [ebp - 0x6d]
mov byte [ebp - 0x6e], al
cmp byte [ebp - 0x6e], 0
je 0x4c480f
mov byte [ebp - 0x6f], 1
jmp 0x4c4825
lea eax, [ebp - 0x2f0]
call fcn.00403af0
call fcn.00403054
cmp ebx, eax
sete byte [ebp - 0x6f]
cmp byte [ebp - 0x6f], 0
je 0x4c49fc
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 [0x4c4600]
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, 0x4c4ed8
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, 0x4c4ed8
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, 0x4c4ed8
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, 0x4c4ed8
call fcn.00405cb8
mov ecx, eax
lea eax, [ebp - 8]
mov edx, edi
call fcn.00405c14
mov edx, dword [ebp - 8]
mov eax, 0x4c4ed8
call fcn.00405cb8
dec eax
inc eax
jle 0x4c48fc
mov edx, dword [ebp - 8]
mov eax, 0x4c4ed8
call fcn.00405cb8
mov dword [ebp - 0x40], eax
jmp 0x4c4932
mov edx, dword [ebp - 8]
mov eax, 0x4c4ee4
call fcn.00405cb8
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 8]
mov eax, 0x4c4ef0
call fcn.00405cb8
cmp eax, dword [ebp - 0x40]
jge 0x4c492e
mov edx, dword [ebp - 8]
mov eax, 0x4c4ef0
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 0x4c49e3
lea eax, [ebp - 8]
mov ecx, dword [ebp - 0x40]
mov edx, edi
call fcn.00405c14
mov edx, dword [ebp - 8]
mov eax, 0x4c4ed8
call fcn.00405cb8
dec eax
inc eax
jle 0x4c4988
mov edx, dword [ebp - 8]
mov eax, 0x4c4ed8
call fcn.00405cb8
mov dword [ebp - 0x40], eax
jmp 0x4c49ba
mov edx, dword [ebp - 8]
mov eax, 0x4c4ee4
call fcn.00405cb8
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 8]
mov eax, 0x4c4ef0
call fcn.00405cb8
cmp eax, dword [ebp - 0x40]
jge 0x4c49ba
mov edx, dword [ebp - 8]
mov eax, 0x4c4ef0
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 0x4c46d4
lea eax, [ebp - 0x2f0]
call fcn.00403914
call fcn.00403054
cmp byte [ebp - 0x19], 0
je 0x4c4a38
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 0x4c4e74
xor eax, eax
push ebp
push 0x4c4e6d
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004bd7fc
dec eax
sub al, 9
jb 0x4c4a6c
call fcn.00405100
jmp 0x4c4e86
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 0x4c4b9d
mov eax, dword [0x4f378c]
cmp dword [eax], 0
je 0x4c4a95
call fcn.004bb7f4
mov dl, 1
mov eax, dword [0x419b88]
call fcn.00404770
mov edx, dword [0x4f378c]
mov dword [edx], eax
mov eax, dword [0x4f3368]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [0x4f3918]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [0x4f36e4]
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 [0x4f37a4]
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 [0x4ede14]
call fcn.004ede7c
mov dword [0x4f9284], eax
mov eax, dword [0x4f9284]
call fcn.004ee0cc
xor eax, eax
push ebp
push 0x4c4b96
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 [0x4f36b0]
mov eax, dword [eax]
movzx ecx, byte [ebp - 0x31]
call fcn.004df514
test al, al
jne 0x4c4b56
call fcn.00405100
call fcn.00405100
jmp 0x4c4e86
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c4b9d
cmp dword [0x4f9284], 0
je 0x4c4b7f
cmp dword [0x4f9284], 0
je 0x4c4b7f
mov eax, dword [0x4f9284]
call fcn.004252bc
mov eax, dword [0x4f9284]
call fcn.004252c4
mov eax, dword [0x4f36e0]
mov eax, dword [eax]
call fcn.00476ef4
ret
mov eax, dword [0x4f36e4]
mov eax, dword [eax]
mov edi, dword [eax + 8]
dec edi
test edi, edi
jl 0x4c4bd2
inc edi
xor ebx, ebx
mov eax, dword [0x4f36e4]
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 0x4c4baf
mov eax, dword [ebp - 0x10]
call fcn.00406c70
mov edi, eax
dec edi
test edi, edi
jl 0x4c4ce5
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 0x4c4cdd
lea eax, [esi + esi*4]
mov edx, dword [ebp - 0x10]
cmp byte [edx + eax*4 + 0x10], 0
jne 0x4c4cdd
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [0x4f36e4]
mov eax, dword [eax]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4c4cdd
inc eax
mov dword [ebp - 0x4c], eax
xor ebx, ebx
mov eax, dword [0x4f36e4]
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 0x4c4cd3
mov eax, dword [0x4f36e4]
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 0x4c4cdd
inc ebx
dec dword [ebp - 0x4c]
jne 0x4c4c37
inc esi
dec edi
jne 0x4c4be8
cmp dword [ebp - 0x20], 0
jne 0x4c4d26
lea ecx, [ebp - 0x300]
mov eax, dword [0x4f9280]
mov eax, dword [eax + 0x360]
mov edx, 0x4c4efc
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 0x4c4e86
push 0x12d
lea eax, [ebp - 0x1a1]
push eax
push 0x4c4f48
push 0x4c4f4c
push 0x4c4f54
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, 0x4c4f64
call fcn.00405cb8
mov ebx, eax
test ebx, ebx
jne 0x4c4d87
mov eax, dword [ebp - 4]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
je 0x4c4d83
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
mov eax, dword [0x4f36b0]
mov eax, dword [eax]
call fcn.004e0660
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 0x4c4e06
mov eax, dword [0x4f36e4]
mov eax, dword [eax]
mov edi, dword [eax + 8]
dec edi
test edi, edi
jl 0x4c4e06
inc edi
xor ebx, ebx
mov eax, dword [0x4f36e4]
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 0x4c4e02
mov eax, dword [ebp - 0x20]
add eax, 0x20
call fcn.004056dc
inc ebx
dec edi
jne 0x4c4ddd
mov eax, dword [0x4f358c]
mov eax, dword [eax]
call fcn.004c2990
xor eax, eax
push ebp
push 0x4c4e41
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
call fcn.004d468c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c4e48
mov eax, dword [0x4f358c]
mov eax, dword [eax]
call fcn.00473320
ret
mov eax, dword [ebp - 0x10]
call fcn.00406c70
dec eax
cmp eax, dword [ebp - 0x38]
jge 0x4c4a4a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c4ec6
lea eax, [ebp - 0x300]
mov edx, 4
call fcn.00405700
lea eax, [ebp - 0x10]
mov edx, dword [0x4c4600]
call fcn.00406e38
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405700
ret