Function at 0x4a7430
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5741a8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push esi
push edi
mov eax, dword [0x5c5678]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x18]
push eax
call fcn.00481a60
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, dword [ebp - 0x18]
cmp esi, ebx
sete al
test al, al
je 0x4a7499
mov dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x4a7485
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
call edx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
push ecx
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x24], esp
push ecx
mov dword [ebp - 0x10], ebx
call fcn.00422950
mov byte [ebp - 4], 2
cmp esi, ebx
jne 0x4a74c5
push 0x80004003
call fcn.0053d640
mov edx, dword [0x590f28]
mov ecx, dword [0x590f2c]
push 0xb
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [0x590f30]
mov dword [eax + 4], ecx
mov ecx, dword [0x590f34]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004827f0
mov eax, dword [ebp - 0x10]
cmp eax, ebx
sete cl
test cl, cl
je 0x4a7539
mov byte [ebp - 4], 0
cmp eax, ebx
je 0x4a7516
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
call edx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
cmp eax, ebx
jne 0x4a7555
push 0x80004003
call fcn.0053d640
mov ecx, dword [eax]
lea edx, [ebp - 0x38]
push edx
push eax
mov eax, dword [ecx + 0x54]
call eax
mov eax, dword [ebp - 0x10]
cmp eax, ebx
jne 0x4a7572
push 0x80004003
call fcn.0053d640
mov ecx, dword [eax]
lea edx, [ebp - 0x34]
push edx
lea edx, [ebp - 0x30]
push edx
lea edx, [ebp - 0x2c]
push edx
push eax
mov eax, dword [ecx + 0x5c]
call eax
mov eax, 0xff000000
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
xor ecx, ecx
lea edx, [ebp - 0x78]
jmp 0x4a75b0
movzx eax, byte [ebp + ecx*4 - 0x38]
movzx esi, byte [ebp + ecx*4 - 0x37]
or eax, 0xffffff00
shl eax, 8
or eax, esi
movzx esi, byte [ebp + ecx*4 - 0x36]
shl eax, 8
or eax, esi
mov dword [edx], eax
mov dword [edx + 4], eax
inc ecx
add edx, 8
cmp ecx, 4
jl 0x4a75b0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x58]
push edx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
call dword [sym.imp.USER32.dll_CopyRect]
fild dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
push eax
lea ecx, [ebp - 0x7c]
push ecx
sub esp, 8
fstp dword [esp + 4]
lea edx, [ebp - 0x58]
fild dword [ebp + 0x10]
fstp dword [esp]
push edx
call fcn.004d3e10
mov esi, eax
add esp, 0x14
mov dword [ebp - 0x1c], esi
cmp esi, ebx
jne 0x4a765f
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x4a7639
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x1c]
push eax
push esi
mov dword [ebp - 0x20], ebx
call fcn.004a6500
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4a7728
push 0x64
lea ecx, [ebp - 0x14]
push 0x58f384
push ecx
mov ecx, ebx
call fcn.004d3a00
add esp, 0xc
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x14]
cmp dword [edi - 0xc], 0
je 0x4a76fe
lea esi, [ebp - 0x24]
call fcn.00478360
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x4a76e4
push ecx
mov edx, esp
mov dword [ebp - 0x20], esp
push edx
mov edi, str.disable_resize
call fcn.00422950
push ecx
mov byte [ebp - 4], 5
mov edi, dword [ebp - 0x14]
mov eax, esp
mov dword [ebp - 0x28], esp
push eax
call fcn.00422950
mov byte [ebp - 4], 6
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.00478260
mov dword [ebp - 0x20], eax
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 3
test esi, esi
je 0x4a76fb
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
call edx
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov edx, dword [eax]
push 1
mov ecx, ebx
call edx
lea eax, [edi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a7728
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4a7745
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret