Function at 0x487030
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4ef746
mov eax, dword fs:[0]
push eax
sub esp, 0x570
mov eax, dword [0x545628]
xor eax, esp
mov dword [esp + 0x56c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x545628]
xor eax, esp
push eax
lea eax, [esp + 0x584]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x594]
mov ebp, dword [esp + 0x598]
mov edi, dword [esp + 0x5a0]
mov esi, dword [esp + 0x5a4]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x59c]
mov dword [esp + 0x24], ecx
call fcn.004888e0
mov ecx, ebp
call fcn.00417970
push eax
lea ecx, [esp + 0x50]
call fcn.00410d40
mov dword [esp + 0x58c], 0
test esi, esi
je 0x4870be
mov byte [esi], 0
push ebp
call fcn.00486f00
add esp, 4
test al, al
je 0x48711f
test esi, esi
je 0x4870d2
mov byte [esi], 1
test edi, edi
je 0x4870dc
mov dword [edi], 0
push 1
mov ecx, ebp
call fcn.004162a0
mov ecx, dword [esp + 0x28]
push eax
push ebx
call fcn.00489570
test al, al
jne 0x487102
test edi, edi
je 0x4870fe
mov dword [edi], 9
xor bl, bl
jmp 0x487104
mov bl, 1
lea ecx, [esp + 0x4c]
mov dword [esp + 0x58c], 0xffffffff
call fcn.004161d0
mov al, bl
jmp 0x4874d4
mov esi, dword [esp + 0x18]
cmp byte [esi + 0x14], 0
jne 0x487145
test edi, edi
je 0x487133
mov dword [edi], 4
push str.ZipLib.dll
push ebx
call fcn.0040fb00
add esp, 8
mov bl, al
jmp 0x487104
push 0x103
lea eax, [esp + 0x175]
push 0
push eax
mov byte [esp + 0x22], 0
mov byte [esp + 0x17c], 0
call fcn.004d6770
add esp, 0xc
lea ecx, [esp + 0x16]
push ecx
lea edx, [esp + 0x174]
push edx
mov ecx, ebp
call fcn.004162a0
push eax
mov eax, dword [esi + 8]
call eax
add esp, 0xc
test al, al
jne 0x4871a9
test edi, edi
je 0x487194
mov dword [edi], 5
push 0x500110
push ebx
call fcn.0040fb00
add esp, 8
mov bl, al
jmp 0x487104
lea ecx, [esp + 0x34]
call fcn.00488830
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x174]
push 0x500104
push edx
mov byte [esp + 0x598], 1
call eax
add esp, 0xc
test al, al
jne 0x4871e9
test edi, edi
je 0x4871e2
mov dword [edi], 6
push 0x5000dc
jmp 0x48723d
cmp dword [esp + 0x20], 0
je 0x4871d8
push 0
push str.skin.ini
lea ecx, [esp + 0x3c]
call fcn.00488630
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push 0
push ecx
push edx
lea ecx, [esp + 0x40]
call fcn.00488b60
mov ecx, dword [esp + 0x24]
push 0
lea eax, [esp + 0x38]
push eax
call fcn.00488d80
mov eax, dword [esp + 0x1c]
cmp eax, 2
jae 0x4872a0
test edi, edi
je 0x487238
mov dword [edi], 7
push 0x5000b4
mov ecx, ebx
call fcn.0040fa50
mov ecx, eax
call fcn.004109f0
cmp byte [esp + 0x16], 0
je 0x487260
lea ecx, [esp + 0x170]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebp
push 0x5000a4
mov ecx, ebx
call fcn.0040fa50
mov ecx, eax
call fcn.00410a10
lea ecx, [esp + 0x34]
mov byte [esp + 0x58c], 0
call fcn.00488550
lea ecx, [esp + 0x4c]
mov dword [esp + 0x58c], 0xffffffff
call fcn.004161d0
xor al, al
jmp 0x4874d4
mov ecx, dword [esp + 0x20]
cmp byte [ecx], 0xff
mov byte [esp + 0x17], 1
jne 0x4872be
cmp byte [ecx + 1], 0xfe
jne 0x4872be
add eax, 0xfffffffe
lea ebp, [ecx + 2]
shr eax, 1
jmp 0x4872f8
lea edx, [eax + eax + 2]
push edx
mov byte [esp + 0x1b], 0
call fcn.004d1df2
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 0x4872f1
xor eax, eax
xor ecx, ecx
mov word [ebp + eax*2], cx
add eax, 0xfffffffd
xor edi, edi
mov dword [esp + 0x30], eax
test eax, eax
jle 0x48747b
lea ebx, [ebp + 2]
lea esp, [esp]
cmp word [ebp + edi*2], 0x2e
jne 0x487469
push 3
push 0x50009c
push ebx
call fcn.004d6116
add esp, 0xc
test eax, eax
je 0x48735c
push 3
push 0x500094
push ebx
call fcn.004d6116
add esp, 0xc
test eax, eax
je 0x48735c
push 3
push 0x50008c
push ebx
call fcn.004d6116
add esp, 0xc
test eax, eax
jne 0x487469
mov eax, edi
test edi, edi
jl 0x48737e
movzx ecx, word [ebp + eax*2]
cmp cx, 0x2c
je 0x48737e
cmp cx, 0x20
je 0x48737e
cmp cx, 0x3d
je 0x48737e
sub eax, 1
jns 0x487362
mov esi, edi
sub esi, eax
add esi, 3
add edi, 3
add ebx, 6
cmp esi, 0x104
jae 0x487469
push esi
lea edx, [ebp + eax*2 + 2]
push edx
lea eax, [esp + 0x380]
push 0x104
push eax
call fcn.004d4a58
add esp, 0x10
xor ecx, ecx
push ecx
push ecx
push 0x104
lea edx, [esp + 0x280]
push edx
push 0xffffffffffffffff
lea eax, [esp + 0x38c]
push eax
push ecx
push 0x3a8
mov word [esp + esi*2 + 0x398], cx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x487469
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x278]
mov byte [esp + eax + 0x278], 0
push edx
mov edx, dword [ecx + 0xc]
lea eax, [esp + 0x178]
push eax
call edx
add esp, 0xc
test al, al
je 0x487469
cmp dword [esp + 0x28], 0x80000000
ja 0x487469
push 0
lea eax, [esp + 0x37c]
push eax
lea ecx, [esp + 0x3c]
call fcn.00488630
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
push 0
push ecx
push edx
lea ecx, [esp + 0x40]
call fcn.00488b60
mov ecx, dword [esp + 0x24]
push 0
lea eax, [esp + 0x38]
push eax
call fcn.00488d80
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x10]
lea ecx, [esp + 0x28]
push ecx
call eax
add esp, 4
inc edi
add ebx, 2
cmp edi, dword [esp + 0x30]
jl 0x487310
mov esi, dword [esp + 0x18]
cmp byte [esp + 0x17], 0
jne 0x48748b
push ebp
call fcn.004d1d15
add esp, 4
mov edx, dword [esi + 0x10]
lea ecx, [esp + 0x1c]
push ecx
call edx
add esp, 4
cmp byte [esp + 0x16], 0
je 0x4874ad
lea eax, [esp + 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x34]
mov byte [esp + 0x58c], 0
call fcn.00488550
lea ecx, [esp + 0x4c]
mov dword [esp + 0x58c], 0xffffffff
call fcn.004161d0
mov al, 1
mov ecx, dword [esp + 0x584]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x56c]
xor ecx, esp
call fcn.004d158d
add esp, 0x57c
ret 0x14