Function at 0x5159d0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x603be0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
xor ebp, ebp
or ebx, 0xffffffff
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x5c], ebp
push ebp
push 0x80
push 3
push ebp
push 1
mov dword [esp + 0x98], ebp
mov eax, dword [0x67f5f4]
push SysReAllocStringLen
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, ebx
jne 0x515ab4
call fcn.0040f010
cmp eax, ebp
jl 0x515a66
mov eax, esi
lea ecx, [esp + 0x3c]
call fcn.0050e4f0
cmp esi, ebp
mov edi, eax
je 0x515a62
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebp
jge 0x515ab8
lea esi, [esp + 0x54]
call fcn.0050df50
mov ecx, dword [0x67f5f4]
push ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.0050df50
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
call fcn.0050df50
xor eax, eax
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
mov esi, eax
jmp 0x515a4a
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x84], 1
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x84], 2
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x84], 3
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x18]
push ecx
lea eax, [esp + 0x40]
mov byte [esp + 0x88], 4
call fcn.0050e200
test eax, eax
je 0x51600e
lea ebx, [ebx]
mov esi, dword [esp + 0x18]
cmp dword [esi - 0xc], ebp
jl 0x515f2a
push str._cdict
push esi
call fcn.005d2e73
add esp, 8
cmp eax, ebp
je 0x515dda
sub eax, esi
sar eax, 1
cmp eax, ebx
je 0x515dda
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x40]
call fcn.0050e200
cmp eax, ebp
je 0x515f48
mov esi, dword [esp + 0x18]
cmp dword [esi - 0xc], ebp
jl 0x515fad
push 0x6198d4
push esi
call fcn.005d2e73
add esp, 8
cmp eax, ebp
je 0x515fad
sub eax, esi
sar eax, 1
cmp eax, ebx
je 0x515fad
lea ecx, [eax + 1]
lea esi, [esp + 0x28]
lea edx, [esp + 0x18]
call fcn.00409f40
mov byte [esp + 0x84], 5
mov ecx, dword [eax]
mov esi, dword [esp + 0x20]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x515c2d
cmp dword [esi + 0xc], ebp
lea edi, [esi + 0xc]
jl 0x515c20
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x515c20
call fcn.0040a210
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x515c17
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x20], ebx
jmp 0x515c2d
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x24]
call fcn.004037a0
mov byte [esp + 0x84], 4
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x515c55
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
lea eax, [esp + 0x40]
call fcn.0050e200
cmp eax, ebp
je 0x515fc2
mov esi, dword [esp + 0x18]
cmp dword [esi - 0xc], ebp
jl 0x515fdc
push 0x6198d4
push esi
call fcn.005d2e73
add esp, 8
cmp eax, ebp
je 0x515fdc
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x515fdc
lea ecx, [eax + 1]
lea esi, [esp + 0x2c]
lea edx, [esp + 0x18]
call fcn.00409f40
mov byte [esp + 0x84], 6
mov ecx, dword [eax]
mov esi, dword [esp + 0x1c]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x515d04
cmp dword [esi + 0xc], ebp
lea edi, [esi + 0xc]
jl 0x515cf7
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x515cf7
call fcn.0040a210
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x515cee
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x1c], ebx
jmp 0x515d04
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x20]
call fcn.004037a0
mov byte [esp + 0x84], 4
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x515d2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
lea eax, [esp + 0x40]
call fcn.0050e200
cmp eax, ebp
je 0x515ff2
mov esi, dword [esp + 0x18]
cmp dword [esi - 0xc], ebp
jl 0x515fc2
push 0x6198d4
push esi
call fcn.005d2e73
add esp, 8
cmp eax, ebp
je 0x515fc2
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x515fc2
lea ecx, [eax + 1]
lea esi, [esp + 0x30]
lea edx, [esp + 0x18]
call fcn.00409f40
lea edi, [esp + 0x24]
mov byte [esp + 0x84], 7
call fcn.0040ab90
mov byte [esp + 0x84], 4
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x515dbb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x94]
call fcn.005112b0
jmp 0x515f2a
cmp dword [esi - 0xc], ebp
jl 0x515f2a
push str._mergedict_
push esi
call fcn.005d2e73
add esp, 8
cmp eax, ebp
je 0x515f2a
sub eax, esi
sar eax, 1
cmp eax, ebx
je 0x515f2a
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x40]
call fcn.0050e200
cmp eax, ebp
je 0x515f48
mov esi, dword [esp + 0x18]
cmp dword [esi - 0xc], ebp
jl 0x515fad
push 0x6198d4
push esi
call fcn.005d2e73
add esp, 8
cmp eax, ebp
je 0x515fad
sub eax, esi
sar eax, 1
cmp eax, ebx
je 0x515fad
lea ecx, [eax + 1]
lea esi, [esp + 0x34]
lea edx, [esp + 0x18]
call fcn.00409f40
mov esi, dword [esp + 0x8c]
lea edi, [esi + 0x18]
mov byte [esp + 0x84], 8
call fcn.0040ab90
mov byte [esp + 0x84], 4
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x515e98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
lea eax, [esp + 0x40]
call fcn.0050e200
cmp eax, ebp
jne 0x515ebb
push 0x6244e0
lea eax, [esi + 0x1c]
xor ebx, ebx
call fcn.004037a0
jmp 0x515f2a
mov esi, dword [esp + 0x18]
cmp dword [esi - 0xc], ebp
jl 0x515f2a
push 0x6198d4
push esi
call fcn.005d2e73
add esp, 8
cmp eax, ebp
je 0x515f2a
sub eax, esi
sar eax, 1
cmp eax, ebx
je 0x515f2a
lea ecx, [eax + 1]
lea esi, [esp + 0x38]
lea edx, [esp + 0x18]
call fcn.00409f40
mov edi, dword [esp + 0x8c]
add edi, 0x1c
mov byte [esp + 0x84], 9
call fcn.0040ab90
mov byte [esp + 0x84], 4
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], ebx
dec ebx
test ebx, ebx
jg 0x515f2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
lea eax, [esp + 0x40]
call fcn.0050e200
test eax, eax
je 0x51600e
or ebx, 0xffffffff
jmp 0x515b50
lea esi, [esp + 0x54]
call fcn.0050df50
mov dword [esp + 0x3c], ebx
mov edx, dword [0x67f5f4]
push edx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x24]
call fcn.00403870
lea ecx, [esp + 0x1c]
call fcn.00403870
lea ecx, [esp + 0x20]
call fcn.00403870
lea ecx, [esp + 0x18]
call fcn.00403870
lea edi, [esp + 0x3c]
call fcn.0050e4d0
xor eax, eax
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
lea esi, [esp + 0x54]
call fcn.0050df50
mov eax, dword [0x67f5f4]
mov dword [esp + 0x3c], ebx
push eax
jmp 0x515f5c
lea esi, [esp + 0x54]
call fcn.0050df50
mov ecx, dword [0x67f5f4]
mov dword [esp + 0x3c], 0xffffffff
push ecx
jmp 0x515f5c
lea esi, [esp + 0x54]
call fcn.0050df50
mov dword [esp + 0x3c], 0xffffffff
jmp 0x515f55
lea esi, [esp + 0x54]
call fcn.0050df50
mov eax, dword [0x67f5f4]
mov dword [esp + 0x3c], 0xffffffff
push eax
jmp 0x515f5c
lea ecx, [esp + 0x24]
call fcn.00403870
lea ecx, [esp + 0x1c]
call fcn.00403870
lea ecx, [esp + 0x20]
call fcn.00403870
lea ecx, [esp + 0x18]
call fcn.00403870
lea edi, [esp + 0x3c]
call fcn.0050e4d0
mov eax, 1
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret