Function at 0x10003020
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x1012182c
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x1015d2f0]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1015d2f0]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0x54], edi
cmp dword [0x1015ef74], ebx
jbe 0x10003611
lea ebp, [edi + 0x20]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [edi + 0x18]
mov eax, dword [edi + 0x1c]
add eax, esi
cmp esi, eax
jbe 0x1000308a
call fcn.100f3f6c
mov ecx, dword [edi]
lea eax, [esp + 0x30]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], esi
call fcn.10041f00
mov esi, dword [eax]
push ebp
mov dword [esp + 0x34], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, ebx
jne 0x100030ba
mov esi, edi
call fcn.100047d0
jmp 0x10003611
mov ebp, 0xf
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
mov dword [esp + 0x130], ebx
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
mov dword [esp + 0xa8], ebp
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
mov byte [esp + 0x130], 2
mov edx, dword [esi]
push 1
push edx
lea edi, [esi + 4]
call fcn.10012a80
mov ecx, edi
push eax
lea edi, [esp + 0x20]
call fcn.10012f80
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x80]
mov byte [esp + 0x13c], 3
call fcn.100057a0
mov esi, 0x10
mov byte [esp + 0x130], 2
cmp dword [esp + 0x2c], esi
jb 0x10003152
mov eax, dword [esp + 0x18]
push eax
call fcn.100f4085
add esp, 4
push 0xffffffffffffffff
push ebx
push 0x1015ef60
lea ecx, [esp + 0x64]
call fcn.100057a0
push 0xc
push str.product_id
lea ecx, [esp + 0x60]
call fcn.10006400
mov edx, dword [esp + 0x30]
push 0xa
push 0x20
lea ecx, [esp + 0x10c]
mov byte [esp + 0x10c], bl
mov dword [esp + 0x10d], ebx
mov dword [esp + 0x111], ebx
mov dword [esp + 0x115], ebx
mov dword [esp + 0x119], ebx
mov dword [esp + 0x11d], ebx
mov dword [esp + 0x121], ebx
mov dword [esp + 0x125], ebx
mov word [esp + 0x129], bx
mov byte [esp + 0x12b], bl
mov eax, dword [edx]
push ecx
push eax
call fcn.100f3531
lea eax, [esp + 0x114]
add esp, 0x10
lea edi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100031e0
sub eax, edi
push eax
lea ecx, [esp + 0x108]
push ecx
lea ecx, [esp + 0x98]
call fcn.10004290
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x98]
push edx
lea ecx, [esp + 0x64]
call fcn.10006300
push 0xe
push str.version_name
lea ecx, [esp + 0x60]
call fcn.10006400
mov edi, dword [esp + 0x30]
push 0xffffffffffffffff
push ebx
add edi, 4
push edi
lea ecx, [esp + 0x64]
call fcn.10006300
lea eax, [esp + 0xac]
push eax
call fcn.100297c0
mov byte [esp + 0x130], 4
push 8
push str.download
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.10004290
mov byte [esp + 0x130], 5
push 1
push 0x1013ad00
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
call fcn.10004290
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xe8]
push edx
lea eax, [esp + 0x40]
mov byte [esp + 0x138], 6
call fcn.10029470
cmp dword [esp + 0x50], esi
jb 0x100032bc
mov eax, dword [esp + 0x3c]
push eax
call fcn.100f4085
add esp, 4
mov byte [esp + 0x130], 4
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
cmp dword [esp + 0x2c], esi
jb 0x100032e3
mov ecx, dword [esp + 0x18]
push ecx
call fcn.100f4085
add esp, 4
push 2
push 0x1013ad04
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.10004290
mov byte [esp + 0x130], 7
push 0xb
push str.api_version
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
call fcn.10004290
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0xe8]
push eax
lea eax, [esp + 0x40]
mov byte [esp + 0x138], 8
call fcn.10029470
cmp dword [esp + 0x50], esi
jb 0x10003354
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.100f4085
add esp, 4
mov byte [esp + 0x130], 4
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
cmp dword [esp + 0x2c], esi
jb 0x1000337b
mov edx, dword [esp + 0x18]
push edx
call fcn.100f4085
add esp, 4
push 8
push str.DataDict
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.10004290
mov byte [esp + 0x130], 9
push 4
push str.type
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
call fcn.10004290
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0xe8]
push ecx
lea eax, [esp + 0x40]
mov byte [esp + 0x138], 0xa
call fcn.10029470
cmp dword [esp + 0x50], esi
jb 0x100033ec
mov edx, dword [esp + 0x3c]
push edx
call fcn.100f4085
add esp, 4
mov byte [esp + 0x130], 4
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
cmp dword [esp + 0x2c], esi
jb 0x10003413
mov eax, dword [esp + 0x18]
push eax
call fcn.100f4085
add esp, 4
push 0xa
push 0x1013ad88
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.10004290
lea ecx, [esp + 0x90]
push ecx
lea edx, [esp + 0xe8]
push edx
lea eax, [esp + 0x1c]
mov byte [esp + 0x138], 0xb
call fcn.10029470
mov byte [esp + 0x130], 4
cmp dword [esp + 0x2c], esi
jb 0x1000346b
mov eax, dword [esp + 0x18]
push eax
call fcn.100f4085
add esp, 4
push 0xc
push 0x1013ad94
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.10004290
push edi
lea ecx, [esp + 0xe8]
push ecx
lea eax, [esp + 0x1c]
mov byte [esp + 0x138], 0xc
call fcn.10029470
mov byte [esp + 0x130], 4
cmp dword [esp + 0x2c], esi
jb 0x100034bc
mov edx, dword [esp + 0x18]
push edx
call fcn.100f4085
add esp, 4
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0xb0]
push ecx
lea edi, [esp + 0x1c]
call fcn.100298c0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0x13c], 0xd
call fcn.100057a0
mov byte [esp + 0x130], 4
cmp dword [esp + 0x2c], esi
jb 0x10003502
mov edx, dword [esp + 0x18]
push edx
call fcn.100f4085
add esp, 4
mov edx, dword [esp + 0x78]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
cmp dword [esp + 0x8c], esi
jae 0x1000351f
lea edx, [esp + 0x78]
cmp dword [esp + 0x70], esi
jb 0x10003639
mov ecx, dword [esp + 0x5c]
cmp ecx, ebx
je 0x1000354c
cmp edx, ebx
je 0x1000354c
mov eax, dword [0x101630a4]
cmp eax, ebx
je 0x1000354c
mov esi, dword [esp + 0x30]
push esi
push str.downloadproto
push edx
push ecx
call eax
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0x3c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea esi, [esp + 0x74]
call fcn.10032db0
test al, al
je 0x10003642
cmp dword [0x1015efac], ebx
jbe 0x1000357f
mov edx, dword [esp + 0x30]
push edx
call fcn.10003680
mov edi, 0x10
mov esi, dword [esp + 0x54]
call fcn.100047d0
mov esi, dword [esp + 0x30]
call fcn.100101f0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0xac]
push eax
call fcn.10029850
cmp dword [esp + 0xa8], edi
jb 0x100035c7
mov ecx, dword [esp + 0x94]
push ecx
call fcn.100f4085
add esp, 4
mov dword [esp + 0xa8], ebp
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
cmp dword [esp + 0x70], edi
jb 0x100035ef
mov edx, dword [esp + 0x5c]
push edx
call fcn.100f4085
add esp, 4
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
cmp dword [esp + 0x8c], edi
jb 0x10003611
mov eax, dword [esp + 0x78]
push eax
call fcn.100f4085
add esp, 4
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.100f30a6
add esp, 0x120
ret
lea ecx, [esp + 0x5c]
jmp 0x10003531
lea eax, [esp + 0x74]
call fcn.100320c0
test al, al
je 0x1000357f
mov eax, dword [esp + 0x78]
mov edi, 0x10
cmp dword [esp + 0x8c], edi
jae 0x10003669
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x10003584