Function at 0x47a1e0
Capabilities:
Delete file

Disassembly:
sub esp, 0x54
mov eax, dword [0x4da6bc]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x1c], esi
call fcn.00403710
push eax
lea ecx, [esp + 0x18]
call fcn.0040cf30
mov eax, dword [0x514540]
mov edx, dword [eax + 0xc]
mov ecx, 0x514540
call edx
mov ebp, eax
add ebp, 0x10
cmp dword [esp + 0x68], 0
mov dword [esp + 0x10], ebp
je 0x47a24a
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call fcn.00402640
push 4
push str..bak
lea ecx, [esp + 0x18]
call fcn.004020b0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.004a1fd1
mov ebp, dword [esp + 0x18]
add esp, 8
lea ecx, [esi + 0x138]
mov ebx, 7
mov dword [esp + 0x18], 0
call fcn.00482700
mov edi, eax
sub edi, 1
js 0x47a2f9
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x47a284
mov esi, dword [esp + 0x1c]
test edi, edi
jl 0x47a3bc
cmp edi, dword [esi + 0x1a8]
jge 0x47a3bc
mov eax, dword [esi + 0x1a4]
mov esi, dword [eax + edi*4]
push 0xffffffffffffffeb
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
test eax, eax
je 0x47a33f
push 0
push 0xe102
push 0x111
push esi
call ebp
mov ebx, eax
cmp ebx, 2
je 0x47a346
cmp dword [esp + 0x68], 0
je 0x47a2f0
mov ecx, dword [esp + 0x18]
push 1
push ecx
push 0x8be
push esi
call ebp
cmp eax, 1
jne 0x47a2f0
inc dword [esp + 0x18]
sub edi, 1
jns 0x47a280
mov ebp, dword [esp + 0x10]
cmp dword [esp + 0x68], 0
je 0x47a3cd
call fcn.00403710
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push 0x4b996c
push edx
mov esi, eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push esi
lea eax, [esp + 0x24]
push eax
push str.Count
push str.Session
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push ebp
jmp 0x47a3d2
mov ebx, 7
jmp 0x47a2d1
cmp dword [esp + 0x68], 0
mov esi, dword [esp + 0x14]
je 0x47a366
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [esp + 0x10]
push esi
push edx
call fcn.004a1fd1
add esp, 8
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47a386
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47a3a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0049e9d2
add esp, 0x54
ret 4
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47a3f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47a414
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0049e9d2
add esp, 0x54
ret 4