Function at 0x5046e8
Capabilities:
Access peb ldr_data
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0x44]
mov edx, dword [0x543aec]
call fcn.00403e48
xor eax, eax
push ebp
push 0x504cac
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004796d0
mov esi, eax
mov eax, dword [0x672428]
cmp dword [eax + 0x2ec], 0
jne 0x504c6b
mov cl, 1
mov dl, 1
mov eax, dword [0x543df8]
call fcn.00562c34
mov edx, dword [0x672428]
mov dword [edx + 0x2ec], eax
test bl, bl
jne 0x50477e
mov eax, esi
call fcn.0047a45c
mov ebx, eax
mov edx, 0x504cc4
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 4]
lea eax, [ebp - 0xc]
push eax
xor ecx, ecx
mov edx, 0x504cd4
mov eax, ebx
call fcn.00621290
mov byte [ebp - 0x44], 1
xor eax, eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0xc]
call fcn.004036e0
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0xc]
call fcn.0040351c
mov dword [ebp - 0x34], eax
mov eax, dword [0x672428]
or dword [eax + 8], 0x200
cmp dword [ebp - 0xc], 0
je 0x5047ca
lea edx, [ebp - 0x44]
mov eax, dword [0x672428]
mov eax, dword [eax + 0x2ec]
call fcn.00599450
test al, al
jne 0x504b2b
lea ecx, [ebp - 0x24]
mov edx, 0x504ce0
mov eax, 0x504ce0
call fcn.0065ed30
lea eax, [ebp - 0xc]
mov ebx, dword [ebp - 0x20]
mov ecx, ebx
mov edx, dword [ebp - 0x24]
call fcn.00403358
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ebx
lea edx, [ebp - 0x44]
mov eax, dword [0x672428]
mov eax, dword [eax + 0x2ec]
call fcn.00599450
mov eax, dword [0x6721e4]
cmp dword [eax], 0
je 0x50482b
mov eax, dword [0x672428]
cmp byte [eax + 0x15e], 0
je 0x50482b
mov al, 0xa
call fcn.004799d0
test al, al
jne 0x50486d
mov eax, dword [0x6721e4]
cmp dword [eax], 0
jne 0x504849
mov dl, 1
mov eax, dword [0x50c79c]
call fcn.00402898
mov edx, dword [0x6721e4]
mov dword [edx], eax
mov eax, dword [0x6721e4]
mov eax, dword [eax]
call fcn.0050d27c
call fcn.00501d74
mov byte [eax + 0x281], 1
call fcn.00501d74
mov byte [eax + 0x283], 1
mov dword [ebp - 0x18], 1
mov eax, dword [0x6725a4]
mov dword [ebp - 0x2c], eax
push 0x504cf0
mov eax, dword [ebp - 0x2c]
push dword [eax]
push 0x504d04
lea eax, [ebp - 0x50]
mov edx, 3
call fcn.004035dc
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
call fcn.0065c958
mov ecx, dword [ebp - 0x4c]
mov edx, dword [0x672428]
mov edx, dword [edx + 0x2d8]
lea eax, [ebp - 0x48]
call fcn.00403b24
mov edx, dword [ebp - 0x48]
mov eax, dword [0x6721e4]
mov eax, dword [eax]
mov eax, dword [eax + 4]
call fcn.0050d0c0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x504b12
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
cmp dword [eax + 0x24], 0
jle 0x504b12
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [0x672428]
mov eax, dword [eax + 0x2ec]
mov eax, dword [eax + 0x5fc]
mov eax, dword [eax + 0x18]
dec eax
test eax, eax
jle 0x504943
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 1
mov eax, dword [0x672428]
mov eax, dword [eax + 0x2ec]
mov eax, dword [eax + 0x5fc]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp - 0x1c]
mov eax, dword [eax + edx*4]
call fcn.0056266c
test al, al
jne 0x50493b
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x14], eax
inc dword [ebp - 0x1c]
dec dword [ebp - 0x28]
jne 0x504911
mov dl, 1
mov eax, dword [0x64dc00]
call fcn.00402898
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 0x24]
dec eax
test eax, eax
jl 0x504b0a
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 0
xor eax, eax
push ebp
push 0x504af4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [eax + edx*4]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x24]
lea eax, [ebp - 0x48]
call fcn.00403b24
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 8]
call fcn.0064fe2c
mov ecx, dword [0x672428]
mov ecx, dword [ecx + 0x2ec]
mov dl, 1
mov eax, dword [0x542c28]
call fcn.005605d0
mov esi, eax
mov dl, 1
mov eax, dword [0x41ef24]
call fcn.006515a0
mov ebx, dword [esi + 0xc]
mov dword [ebx + 0x38], eax
mov eax, dword [ebp - 8]
mov edx, dword [eax + 4]
mov eax, dword [ebx + 0x38]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebx + 0x38]
call fcn.006273fc
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.006265c4
mov eax, dword [ebx + 0x38]
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov eax, ebx
call fcn.0055e620
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_DeleteFileW
mov eax, dword [ebx + 0x38]
mov edx, dword [eax]
call dword [edx + 0x28]
mov edx, eax
shl eax, 4
sub eax, edx
mov edx, dword [esi + 0x24]
mov dword [edx + 0x2c], eax
mov eax, dword [ebx + 0x38]
mov edx, dword [eax]
call dword [edx + 0x1c]
mov edx, eax
shl eax, 4
sub eax, edx
mov edx, dword [esi + 0x24]
mov dword [edx + 0x30], eax
mov byte [ebx + 0x45], 0
mov byte [ebx + 0x46], 1
mov eax, dword [0x672428]
mov eax, dword [eax + 0x2ec]
mov edx, esi
call fcn.005fd0b0
mov dl, 1
mov eax, dword [0x543cb8]
call fcn.00562420
mov edi, eax
mov eax, dword [0x672428]
mov eax, dword [eax + 0x2ec]
mov eax, dword [eax + 0x5fc]
mov eax, dword [eax + 0x1c]
mov edx, dword [eax]
mov eax, edi
call fcn.00562494
lea ebx, [edi + 0x14]
mov dword [ebx + 8], esi
mov ax, word [ebx + 0x68]
mov edx, dword [0x672830]
cmp ax, word [edx]
je 0x504acc
mov ax, word [ebx + 0x6a]
mov edx, dword [0x672830]
cmp ax, word [edx]
je 0x504acc
jmp 0x504ab2
sub word [ebx + 0x68], 0x5a
add word [ebx + 0x6a], 0x5a
mov eax, dword [esi + 0x24]
mov eax, dword [eax + 0x2c]
mov edx, 0x69
call fcn.00629410
movsx edx, word [ebx + 0x68]
neg edx
cmp eax, edx
jg 0x504aa8
mov eax, dword [0x672428]
mov eax, dword [eax + 0x2ec]
mov eax, dword [eax + 0x5fc]
mov ecx, edi
mov edx, dword [ebp - 0x14]
call fcn.00656c9c
inc dword [ebp - 0x14]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x504afe
inc dword [ebp - 0x1c]
dec dword [ebp - 0x28]
jne 0x50496f
mov eax, dword [ebp - 8]
call fcn.004028c0
add dword [ebp - 0x2c], 4
dec dword [ebp - 0x18]
jne 0x50487c
mov eax, dword [0x672428]
and dword [eax + 8], 0xfffffdff
mov eax, dword [0x672428]
mov eax, dword [eax + 0x2ec]
mov eax, dword [eax + 0xa8]
call fcn.00656c90
cmp dword [eax + 8], 0
jne 0x504b53
mov ecx, 2
mov dl, 0x17
call fcn.00551cb4
mov bl, 3
mov esi, dword [0x672428]
add esi, 0x2f0
mov eax, dword [esi]
call fcn.00656bcc
add esi, 4
dec bl
jne 0x504b61
mov eax, dword [0x672428]
mov eax, dword [eax + 0x2ec]
mov eax, dword [eax + 0x5fc]
mov eax, dword [eax + 0x18]
dec eax
test eax, eax
jl 0x504bea
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 0
mov eax, dword [0x672428]
mov eax, dword [eax + 0x2ec]
mov eax, dword [eax + 0x5fc]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp - 0x1c]
mov eax, dword [eax + edx*4]
call fcn.0056266c
and eax, 0x7f
mov edx, dword [0x672428]
mov eax, dword [edx + eax*4 + 0x2f0]
mov edx, dword [0x672428]
mov edx, dword [edx + 0x2ec]
mov edx, dword [edx + 0x5fc]
mov edx, dword [edx + 0x1c]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [edx + ecx*4]
call fcn.00656c78
inc dword [ebp - 0x1c]
dec dword [ebp - 0x28]
jne 0x504b93
mov bl, 3
mov eax, dword [0x672428]
add eax, 0x54
mov edx, dword [eax]
mov ecx, dword [eax + 0x29c]
cmp edx, dword [ecx + 0x18]
jl 0x504c05
xor edx, edx
mov dword [eax], edx
add eax, 4
dec bl
jne 0x504bf4
mov bl, 3
mov esi, dword [0x672428]
add esi, 0x2f0
mov eax, dword [esi]
cmp dword [eax + 0x18], 0
jne 0x504c64
mov eax, dword [0x672428]
mov eax, dword [eax + 0x2ec]
call fcn.004028c0
mov eax, dword [0x672428]
xor edx, edx
mov dword [eax + 0x2ec], edx
mov eax, dword [0x672428]
xor edx, edx
mov dword [eax + 0x54], edx
mov eax, dword [0x672428]
xor edx, edx
mov dword [eax + 0x58], edx
mov eax, dword [0x672428]
xor edx, edx
mov dword [eax + 0x5c], edx
mov al, 1
call fcn.005046e8
add esi, 4
dec bl
jne 0x504c1a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x504cb3
lea eax, [ebp - 0x50]
call fcn.00403274
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.00403898
lea eax, [ebp - 0x44]
mov edx, dword [0x543aec]
call fcn.00403f10
lea eax, [ebp - 0x10]
call fcn.00403880
lea eax, [ebp - 0xc]
call fcn.00403274
ret