Function at 0x4fa1d0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x51d5eb
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x589560]
xor eax, esp
mov dword [esp + 0x448], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x589560]
xor eax, esp
push eax
lea eax, [esp + 0x460]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x478]
mov ebp, dword [esp + 0x470]
mov edi, dword [esp + 0x474]
mov esi, dword [esp + 0x47c]
mov dword [esp + 0x18], ecx
mov ecx, ebx
mov dword [esp + 0x24], ebx
call fcn.004fb6c0
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x14], 0
jne 0x4fa25d
test esi, esi
je 0x4fa24a
mov dword [esi], 4
push str.ZipLib.dll
push ebp
call fcn.004708d0
add esp, 8
jmp 0x4fa59e
push 0x103
lea ecx, [esp + 0x51]
push 0
push ecx
mov byte [esp + 0x22], 0
mov byte [esp + 0x58], 0
call fcn.005002f0
add esp, 0xc
lea edx, [esp + 0x16]
push edx
lea eax, [esp + 0x50]
push eax
mov ecx, edi
call fcn.0046adb0
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 8]
push eax
call edx
add esp, 0xc
test al, al
jne 0x4fa2ba
test esi, esi
je 0x4fa2a7
mov dword [esi], 5
push 0x5458bc
push ebp
call fcn.004708d0
add esp, 8
jmp 0x4fa59e
lea ecx, [esp + 0x34]
call fcn.004fb610
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [edx + 0xc]
lea ecx, [esp + 0x50]
push 0x5458b0
push ecx
mov dword [esp + 0x474], 0
call eax
add esp, 0xc
test al, al
jne 0x4fa2fe
test esi, esi
je 0x4fa2f7
mov dword [esi], 6
push 0x545888
jmp 0x4fa350
cmp dword [esp + 0x20], 0
je 0x4fa2ed
push 0
push str.skin.ini
lea ecx, [esp + 0x3c]
call fcn.004fb320
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push 0
push ecx
push edx
lea ecx, [esp + 0x40]
call fcn.004fbbd0
push 0
lea eax, [esp + 0x38]
push eax
mov ecx, ebx
call fcn.004fbce0
mov eax, dword [esp + 0x1c]
cmp eax, 2
jae 0x4fa39f
test esi, esi
je 0x4fa34b
mov dword [esi], 7
push 0x545860
mov ecx, ebp
call fcn.00470820
mov ecx, eax
call fcn.00471770
cmp byte [esp + 0x16], 0
je 0x4fa370
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
push 0x545850
mov ecx, ebp
call fcn.00470820
mov ecx, eax
call fcn.00471790
lea ecx, [esp + 0x34]
mov dword [esp + 0x468], 0xffffffff
call fcn.004fb240
xor al, al
jmp 0x4fa59e
mov ecx, dword [esp + 0x20]
cmp byte [ecx], 0xff
mov byte [esp + 0x17], 1
jne 0x4fa3bd
cmp byte [ecx + 1], 0xfe
jne 0x4fa3bd
add eax, 0xfffffffe
lea ebp, [ecx + 2]
shr eax, 1
jmp 0x4fa3f6
lea edx, [eax + eax]
push edx
mov byte [esp + 0x1b], 0
call fcn.004fdc99
add esp, 4
mov ebp, eax
mov eax, dword [esp + 0x1c]
push eax
push ebp
push eax
mov eax, dword [esp + 0x2c]
push eax
push 0
push 0x3a8
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jge 0x4fa3ef
xor eax, eax
mov word [ebp + eax*2], 0
add eax, 0xfffffffd
xor edi, edi
test eax, eax
mov dword [esp + 0x28], eax
jle 0x4fa555
lea ebx, [ebp + 2]
lea ebx, [ebx]
cmp word [ebp + edi*2], 0x2e
jne 0x4fa545
push 3
push 0x545848
push ebx
call fcn.004ffd7f
add esp, 0xc
test eax, eax
je 0x4fa448
push 3
push 0x545840
push ebx
call fcn.004ffd7f
add esp, 0xc
test eax, eax
jne 0x4fa545
test edi, edi
mov eax, edi
jl 0x4fa46c
mov edi, edi
movzx ecx, word [ebp + eax*2]
cmp cx, 0x2c
je 0x4fa46c
cmp cx, 0x20
je 0x4fa46c
cmp cx, 0x3d
je 0x4fa46c
sub eax, 1
jns 0x4fa450
mov esi, edi
sub esi, eax
add esi, 3
add edi, 3
add ebx, 6
cmp esi, 0x104
jae 0x4fa545
push esi
lea ecx, [ebp + eax*2 + 2]
push ecx
lea edx, [esp + 0x25c]
push 0x104
push edx
call fcn.004fe994
add esp, 0x10
push 0
push 0
push 0x104
lea eax, [esp + 0x15c]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x268]
push ecx
push 0
push 0x3a8
mov word [esp + esi*2 + 0x274], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x4fa545
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esi + 0xc]
mov byte [esp + eax + 0x154], 0
lea eax, [esp + 0x154]
push eax
lea ecx, [esp + 0x54]
push ecx
call edx
add esp, 0xc
test al, al
je 0x4fa545
push 0
lea eax, [esp + 0x258]
push eax
lea ecx, [esp + 0x3c]
call fcn.004fb320
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
push 0
push ecx
push edx
lea ecx, [esp + 0x40]
call fcn.004fbbd0
mov ecx, dword [esp + 0x24]
push 0
lea eax, [esp + 0x38]
push eax
call fcn.004fbce0
mov edx, dword [esi + 0x10]
lea ecx, [esp + 0x2c]
push ecx
call edx
add esp, 4
add edi, 1
add ebx, 2
cmp edi, dword [esp + 0x28]
jl 0x4fa410
cmp byte [esp + 0x17], 0
jne 0x4fa565
push ebp
call fcn.004fdda1
add esp, 4
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x10]
lea eax, [esp + 0x1c]
push eax
call edx
add esp, 4
cmp byte [esp + 0x16], 0
je 0x4fa588
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x34]
mov dword [esp + 0x468], 0xffffffff
call fcn.004fb240
mov al, 1
mov ecx, dword [esp + 0x460]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x448]
xor ecx, esp
call fcn.004fe05a
add esp, 0x458
ret 0x10