Function at 0x10002490
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x101237c2
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x1015d2f0]
xor eax, esp
mov dword [esp + 0x160], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1015d2f0]
xor eax, esp
push eax
lea eax, [esp + 0x17c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x18c]
mov esi, ecx
lea ecx, [esp + 0x44]
xor ebx, ebx
push ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
call fcn.10001d40
mov dword [esp + 0x184], ebx
test byte [esp + 0x9c], 0x30
jne 0x10002ca7
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [esp + 0x50]
call fcn.100057a0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x68]
call fcn.10005880
lea edi, [esp + 0x44]
call fcn.1002f460
cmp al, bl
je 0x10002ca7
mov ebp, 0xf
mov dword [esp + 0xc8], ebp
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
mov dword [esp + 0x100], ebp
mov dword [esp + 0xfc], ebx
mov byte [esp + 0xec], bl
mov byte [esp + 0x184], 2
push ecx
mov eax, esp
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x94], ebx
mov esi, edi
mov dword [esp + 0x20], esp
mov dword [eax], str.us_download_proto_check_result
call fcn.1002e420
cmp al, bl
je 0x10002c46
mov eax, dword [esp + 0x80]
cmp eax, ebx
je 0x100025c4
cmp dword [esp + 0x90], 1
jne 0x100025c4
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x80], eax
xor edx, edx
cmp eax, ebx
setne dl
push ecx
mov eax, esp
mov dword [esp + 0x88], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
lea esi, [esp + 0x48]
mov dword [esp + 0x94], edx
mov dword [esp + 0x20], esp
mov dword [eax], str.status
call fcn.1002e420
cmp al, bl
je 0x10002651
lea esi, [esp + 0x120]
lea edx, [esp + 0x44]
call fcn.10001e10
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xbc]
mov byte [esp + 0x190], 3
call fcn.100057a0
mov esi, 0x10
mov byte [esp + 0x184], 2
cmp dword [esp + 0x138], esi
jb 0x10002656
mov eax, dword [esp + 0x124]
push eax
call fcn.100f4085
add esp, 4
jmp 0x10002656
mov esi, 0x10
cmp dword [esp + 0xc4], ebx
jbe 0x1000269c
push 1
push ebx
lea ecx, [esp + 0x128]
push ecx
lea ecx, [esp + 0xbc]
call fcn.100043c0
push 0x1013ad74
mov byte [esp + 0x188], 4
push eax
mov dword [esp + 0x2c], 1
call fcn.10006be0
add esp, 8
mov byte [esp + 0x1b], bl
test al, al
je 0x100026a1
mov byte [esp + 0x1b], 1
mov dword [esp + 0x184], 2
test byte [esp + 0x24], 1
je 0x100026cc
cmp dword [esp + 0x138], esi
jb 0x100026cc
mov edx, dword [esp + 0x124]
push edx
call fcn.100f4085
add esp, 4
cmp byte [esp + 0x1b], bl
jne 0x10002c4b
xor eax, eax
cmp dword [esp + 0x80], ebx
push ecx
setne al
mov dword [esp + 0x88], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
lea esi, [esp + 0x48]
mov dword [esp + 0x20], esp
mov dword [esp + 0x94], eax
mov eax, esp
mov dword [eax], str.message
call fcn.1002e420
cmp al, bl
je 0x10002744
lea esi, [esp + 0x28]
lea edx, [esp + 0x44]
call fcn.10001e10
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xf4]
mov byte [esp + 0x190], 5
call fcn.100057a0
mov ecx, esi
call fcn.1002b8e0
xor ecx, ecx
cmp dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
setne cl
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
lea esi, [esp + 0x44]
push ecx
mov eax, esp
mov dword [esp + 0x94], ecx
mov dword [esp + 0x20], esp
mov dword [eax], str.infos
call fcn.1002e420
cmp al, bl
je 0x10002c18
mov eax, esi
call fcn.1002f3c0
xor edx, edx
cmp dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
setne dl
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x90], edx
lea esp, [esp]
push ecx
mov eax, esp
lea esi, [esp + 0x48]
mov dword [esp + 0x20], esp
mov dword [eax], str.info
call fcn.1002e420
cmp al, bl
je 0x10002c0f
mov dword [esp + 0x11c], ebp
mov dword [esp + 0x118], ebx
mov byte [esp + 0x108], bl
mov dword [esp + 0xe4], ebp
mov dword [esp + 0xe0], ebx
mov byte [esp + 0xd0], bl
mov dword [esp + 0x154], ebp
mov dword [esp + 0x150], ebx
mov byte [esp + 0x140], bl
mov byte [esp + 0x184], 8
mov eax, dword [esp + 0x80]
xor ebp, ebp
cmp eax, ebx
je 0x1000284e
cmp dword [esp + 0x90], 1
jne 0x1000284e
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x80], eax
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [esp + 0x84], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
lea esi, [esp + 0x44]
push ecx
mov eax, esp
mov dword [esp + 0x94], ecx
mov dword [esp + 0x20], esp
mov dword [eax], 0x1013ad88
call fcn.1002e420
cmp al, bl
je 0x100028fd
lea esi, [esp + 0x28]
lea edx, [esp + 0x44]
call fcn.10001e10
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x110]
mov byte [esp + 0x190], 9
call fcn.100057a0
mov edi, 0x10
mov byte [esp + 0x184], 8
cmp dword [esp + 0x40], edi
jb 0x100028d0
mov edx, dword [esp + 0x2c]
push edx
call fcn.100f4085
add esp, 4
cmp dword [esp + 0x118], ebx
jbe 0x10002902
mov eax, dword [esp + 0x108]
cmp dword [esp + 0x11c], edi
jae 0x100028f0
lea eax, [esp + 0x108]
push eax
call fcn.100f39b6
add esp, 4
mov ebp, eax
jmp 0x10002902
mov edi, 0x10
xor eax, eax
cmp dword [esp + 0x80], ebx
push ecx
setne al
mov dword [esp + 0x88], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
lea esi, [esp + 0x48]
mov dword [esp + 0x20], esp
mov dword [esp + 0x94], eax
mov eax, esp
mov dword [eax], 0x1013ad94
call fcn.1002e420
cmp al, bl
je 0x10002984
lea esi, [esp + 0x28]
lea edx, [esp + 0x44]
call fcn.10001e10
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xd8]
mov byte [esp + 0x190], 0xa
call fcn.100057a0
mov byte [esp + 0x184], 8
cmp dword [esp + 0x40], edi
jb 0x10002984
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.100f4085
add esp, 4
xor edx, edx
cmp dword [esp + 0x80], ebx
push ecx
setne dl
mov eax, esp
mov dword [esp + 0x88], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
lea esi, [esp + 0x48]
mov dword [esp + 0x20], esp
mov dword [esp + 0x94], edx
mov dword [eax], str.is_exist
call fcn.1002e420
cmp al, bl
je 0x10002a06
lea esi, [esp + 0x28]
lea edx, [esp + 0x44]
call fcn.10001e10
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x148]
mov byte [esp + 0x190], 0xb
call fcn.100057a0
mov byte [esp + 0x184], 8
cmp dword [esp + 0x40], edi
jb 0x10002a06
mov eax, dword [esp + 0x2c]
push eax
call fcn.100f4085
add esp, 4
cmp ebp, ebx
jle 0x10002b70
cmp dword [esp + 0xe0], ebx
jbe 0x10002b70
mov ecx, dword [esp + 0x150]
push 1
push 0x1013adb0
push ecx
push ebx
lea ecx, [esp + 0x14c]
call fcn.10005970
test eax, eax
jne 0x10002b70
lea edx, [esp + 0xcc]
push edx
mov edx, dword [esp + 0x24]
mov ecx, ebp
call fcn.10002cf0
test al, al
jne 0x10002b70
push ebp
lea ecx, [esp + 0xd0]
call fcn.10002d90
test al, al
je 0x10002b70
push ebx
push ebp
call fcn.10012a80
push eax
lea ecx, [esp + 0xd8]
lea edi, [esp + 0x12c]
call fcn.10012f80
push ebx
push ebp
mov byte [esp + 0x18c], 0xc
call fcn.10010f40
push eax
lea ecx, [esp + 0xd8]
lea edi, [esp + 0x164]
call fcn.10011290
lea eax, [esp + 0x120]
mov byte [esp + 0x184], 0xd
call fcn.100320c0
test al, al
je 0x10002ae4
cmp dword [esp + 0x138], 0x10
mov eax, dword [esp + 0x124]
jae 0x10002add
lea eax, [esp + 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x158]
call fcn.100320c0
test al, al
je 0x10002b13
cmp dword [esp + 0x170], 0x10
mov eax, dword [esp + 0x15c]
jae 0x10002b0c
lea eax, [esp + 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x20
call fcn.100f4579
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
mov byte [esp + 0x184], 0xe
cmp esi, ebx
je 0x10002b3f
lea edx, [esp + 0xcc]
mov eax, ebp
call fcn.10001d20
jmp 0x10002b41
xor eax, eax
mov ecx, dword [esp + 0x20]
push eax
mov byte [esp + 0x188], 0xd
call fcn.1000c760
lea ecx, [esp + 0x158]
call fcn.1002b8e0
lea ecx, [esp + 0x120]
call fcn.1002b8e0
mov edi, 0x10
lea eax, [esp + 0x44]
call fcn.1002f400
cmp dword [esp + 0x154], edi
jb 0x10002b92
mov eax, dword [esp + 0x140]
push eax
call fcn.100f4085
add esp, 4
mov esi, 0xf
mov dword [esp + 0x154], esi
mov dword [esp + 0x150], ebx
mov byte [esp + 0x140], bl
cmp dword [esp + 0xe4], edi
jb 0x10002bc5
mov ecx, dword [esp + 0xd0]
push ecx
call fcn.100f4085
add esp, 4
mov dword [esp + 0xe4], esi
mov dword [esp + 0xe0], ebx
mov byte [esp + 0xd0], bl
cmp dword [esp + 0x11c], edi
jb 0x10002bf3
mov edx, dword [esp + 0x108]
push edx
call fcn.100f4085
add esp, 4
mov dword [esp + 0x11c], esi
mov dword [esp + 0x118], ebx
mov byte [esp + 0x108], bl
mov ebp, esi
jmp 0x100027c0
lea eax, [esp + 0x44]
call fcn.1002f400
lea eax, [esp + 0x44]
call fcn.1002f400
mov edi, dword [esp + 0x20]
lea esi, [edi + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [edi + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, ebx
jbe 0x10002c46
mov esi, dword [esp + 0x20]
call fcn.10002f50
mov esi, 0x10
cmp dword [esp + 0x100], esi
jb 0x10002c64
mov eax, dword [esp + 0xec]
push eax
call fcn.100f4085
add esp, 4
mov byte [esp + 0xec], bl
mov dword [esp + 0xfc], ebx
mov dword [esp + 0x100], ebp
cmp dword [esp + 0xc8], esi
jb 0x10002c92
mov ecx, dword [esp + 0xb4]
push ecx
call fcn.100f4085
add esp, 4
mov byte [esp + 0xb4], bl
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc8], ebp
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x188], 0xffffffff
call fcn.1002de20
mov ecx, dword [esp + 0x17c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.100f30a6
add esp, 0x174
ret 4