Function at 0x496300
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a8312
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x7e2670]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x1b0], 0
lea ecx, [ebp - 0x80]
call fcn.004045c0
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.00407790
sub eax, 1
push eax
lea ecx, [ebp + 8]
call fcn.00486340
movsx eax, byte [eax]
cmp eax, 0x2a
je 0x49637d
push 0x70ca8c
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x80]
call fcn.00406b10
mov ecx, eax
call fcn.00412990
lea edx, [ebp - 0x1ac]
push edx
lea ecx, [ebp - 0x80]
call fcn.00404810
push eax
call fcn.0066b073
add esp, 8
mov dword [ebp - 0x1b0], eax
cmp dword [ebp - 0x1b0], 0xffffffff
jne 0x4963d1
mov byte [ebp - 0x2bd], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x80]
call fcn.00404770
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00404770
mov al, byte [ebp - 0x2bd]
jmp 0x4965ac
lea eax, [ebp - 0x1ac]
push eax
mov ecx, dword [ebp - 0x1b0]
push ecx
call fcn.0066b19a
add esp, 8
test eax, eax
jne 0x496575
push 0x70ca90
lea edx, [ebp - 0x188]
push edx
call fcn.0066a2f0
add esp, 8
test eax, eax
je 0x496570
push 0x70ca94
lea eax, [ebp - 0x188]
push eax
call fcn.0066a2f0
add esp, 8
test eax, eax
je 0x496570
cmp dword [ebp - 0x1ac], 0x10
jne 0x496522
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x2c4], esp
lea ecx, [ebp - 0x188]
push ecx
push 0x70ca98
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.004886a0
add esp, 0xc
mov dword [ebp - 0x2cc], eax
mov ecx, dword [ebp - 0x2cc]
mov dword [ebp - 0x2d0], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x2d0]
push edx
push esi
call fcn.00488760
add esp, 0xc
mov dword [ebp - 0x2d4], eax
call fcn.00496300
add esp, 0x1c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00404770
lea eax, [ebp - 0x188]
push eax
push 0x70ca9c
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x48]
push edx
call fcn.004886a0
add esp, 0xc
mov dword [ebp - 0x2d8], eax
mov eax, dword [ebp - 0x2d8]
mov dword [ebp - 0x2dc], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x2dc]
push ecx
lea edx, [ebp - 0x64]
push edx
call fcn.00488760
add esp, 0xc
mov dword [ebp - 0x2e0], eax
mov eax, dword [ebp - 0x2e0]
mov dword [ebp - 0x2e4], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x2e4]
call fcn.00404810
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x64]
call fcn.00404770
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00404770
jmp 0x496570
mov byte [ebp - 0x2bc], 0
push 0x103
push 0
lea ecx, [ebp - 0x2bb]
push ecx
call fcn.006665c0
add esp, 0xc
lea edx, [ebp - 0x188]
push edx
lea ecx, [ebp + 8]
call fcn.00404810
push eax
push 0x70caa0
lea eax, [ebp - 0x2bc]
push eax
call fcn.0066926d
add esp, 0x10
lea ecx, [ebp - 0x2bc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4963d1
mov edx, dword [ebp - 0x1b0]
push edx
call fcn.0066afce
add esp, 4
mov byte [ebp - 0x2c5], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x80]
call fcn.00404770
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00404770
mov al, byte [ebp - 0x2c5]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006665ac
mov esp, ebp
pop ebp
ret