Function at 0x47d674
Capabilities:
Delete file

Disassembly:
mov eax, 0x6735e1
call fcn.0062921c
sub esp, 0x558
push ebx
push esi
xor esi, esi
push edi
push 0x104
cmp dword [ebp + 8], esi
jne 0x47d857
lea eax, [ebp - 0x564]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push 0x80
push 4
lea eax, [ebp - 0x564]
push eax
call fcn.0045c90d
mov dword [ebp + 8], eax
mov dword [ebp - 0x14], esi
cmp eax, 0xffffffff
jne 0x47d6ca
xor eax, eax
jmp 0x47d8bd
push eax
call fcn.0047d5a3
test eax, eax
je 0x47d849
push esi
push 0xf8
lea eax, [ebp - 0x154]
push eax
push dword [ebp + 8]
call fcn.0045caa3
test eax, eax
jne 0x47d849
mov ebx, dword [ebp - 0xbc]
mov edi, dword [ebp - 0xb8]
test ebx, ebx
je 0x47d849
cmp edi, 0xc
jbe 0x47d849
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
push edi
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], esi
call fcn.0045abd2
push esi
push ebx
push 0xc
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call fcn.0045cae8
test eax, eax
jne 0x47d83d
mov eax, 0x200
cmp word [ebp - 0x34], ax
jne 0x47d83d
push 2
pop eax
cmp word [ebp - 0x32], ax
jne 0x47d83d
cmp dword [ebp - 0x38], 0x100000
jae 0x47d83d
add ebx, dword [ebp - 0x38]
sub edi, dword [ebp - 0x38]
push esi
push ebx
mov ebx, dword [ebp - 0x44]
push edi
push ebx
push dword [ebp + 8]
call fcn.0045cae8
test eax, eax
jne 0x47d83d
lea eax, [ebp - 0x10]
push eax
push ebx
push edi
push ebx
call fcn.00565305
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.0045b92c
xor eax, eax
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], esi
mov word [ebp - 0x5c], ax
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 2
jae 0x47d7bc
lea eax, [ebp - 0x2c]
push dword [ebp - 0x10]
push ebx
push eax
call fcn.0045e9f0
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x47d7d2
lea eax, [ebp - 0x2c]
xor edi, edi
lea ecx, [ebp - 0x5c]
inc edi
push edi
push ecx
push eax
call fcn.004f7386
test eax, eax
je 0x47d816
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x47d7f0
lea eax, [ebp - 0x2c]
push 0x74cdd4
push edi
lea ecx, [ebp - 0x5c]
push ecx
push eax
call fcn.004f6fbc
test al, al
je 0x47d816
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0047d925
mov dword [ebp - 0x14], eax
jmp 0x47d829
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x47d822
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push esi
push edi
lea ecx, [ebp - 0x5c]
call fcn.0042386b
push esi
push edi
lea ecx, [ebp - 0x2c]
call fcn.0042386b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.005e5e94
lea eax, [ebp + 8]
push eax
call fcn.0045c89d
mov eax, dword [ebp - 0x14]
jmp 0x47d8bd
lea eax, [ebp - 0x35c]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push 0x80
push 4
lea eax, [ebp - 0x35c]
push eax
call fcn.0045c90d
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x47d6c3
push esi
push dword [ebp + 8]
push eax
call fcn.0047d8d0
mov esi, eax
mov edi, edx
lea eax, [ebp - 0x10]
push eax
call fcn.0045c89d
mov ecx, esi
or ecx, edi
je 0x47d6c3
push edi
push esi
sub esp, 0x18
lea eax, [ebp - 0x35c]
mov ecx, esp
push eax
call fcn.00424ff1
call fcn.0047ccd0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4