Function at 0x48be21
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x53239a
mov eax, dword fs:[0]
push eax
sub esp, 0x848
mov eax, dword [0x58a700]
xor eax, esp
mov dword [esp + 0x840], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58a700]
xor eax, esp
push eax
lea eax, [esp + 0x85c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x874]
mov ebx, dword [esp + 0x86c]
mov ebp, dword [esp + 0x870]
mov dword [esp + 0x18], eax
xor eax, eax
push eax
push eax
push eax
push 0x11
push dword [esi + 0xa0]
mov dword [esp + 0x28], eax
mov edi, eax
push 0xffffffffffffffff
call fcn.0048ef1b
cmp dword [esi + 8], edi
je 0x48c288
cmp dword [esi + 8], 0xffffffff
je 0x48c288
test ebp, ebp
je 0x48c245
mov ecx, ebp
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x14]
jne 0x48beb1
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jb 0x48c245
cmp dword [esp + 0x878], edi
jg 0x48bf1f
cmp dword [0x5912bc], edi
je 0x48beff
push dword [esp + 0x878]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._ERROR___d___pid__d__error.
push 1
push dword [0x5912bc]
call fcn.0047e2a3
add esp, 0x14
mov eax, dword [esi + 8]
test eax, eax
je 0x48bf17
cmp eax, 0xffffffff
je 0x48bf17
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [esi + 8], eax
push 0x12
pop edi
jmp 0x48c2b3
test ebx, ebx
je 0x48c21a
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x14]
jne 0x48bf2c
sub ecx, edx
sar ecx, 1
je 0x48c21a
push ebp
lea ecx, [esi + 0x3c]
call fcn.00450a4d
mov ecx, dword [esp + 0x18]
mov eax, 0x56cb58
test ecx, ecx
cmovne eax, ecx
lea ecx, [esi + 0x40]
push eax
call fcn.00450a4d
mov al, byte [esp + 0x884]
mov byte [esi + 0x30], al
call fcn.004505b2
push eax
lea ecx, [esp + 0x18]
call fcn.004503e0
xor ebp, ebp
mov dword [esp + 0x864], ebp
call fcn.004505b2
push eax
lea ecx, [esp + 0x20]
call fcn.004503e0
xor eax, eax
mov byte [esp + 0x864], 1
push 0x7fe
mov word [esp + 0x58], ax
lea eax, [esp + 0x5a]
push ebp
push eax
mov dword [esp + 0x24], ebp
call fcn.00505190
add esp, 0xc
lea edx, [esp + 0x54]
mov ecx, ebx
call fcn.0048a1b5
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x5c]
call fcn.00480769
pop ecx
pop ecx
test al, al
jne 0x48c044
cmp dword [0x5912bc], ebp
je 0x48c006
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._ERROR___d___parse_url_diy_failed_
push 1
push dword [0x5912bc]
call fcn.0047e2a3
add esp, 0x10
mov eax, dword [esi + 8]
test eax, eax
je 0x48c01c
cmp eax, 0xffffffff
je 0x48c01c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebp
push 0x14
mov ecx, dword [esp + 0x20]
pop edi
lea ecx, [ecx - 0x10]
call fcn.00450b32
or dword [esp + 0x864], 0xffffffff
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.00450b32
jmp 0x48c2b3
lea eax, [esp + 0x54]
push eax
lea ecx, [esi + 0x48]
call fcn.00450a4d
cmp dword [0x5912bc], 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
je 0x48c0cc
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x28]
call fcn.00450c22
lea edx, [esp + 0x24]
mov byte [esp + 0x864], 2
lea ecx, [esp + 0x3c]
call fcn.0047ed72
mov byte [esp + 0x864], 3
cmp dword [eax + 0x14], 0x10
jb 0x48c093
mov eax, dword [eax]
push eax
call ebx
push eax
push str._INFO___d___download_url__s_.
push 3
push dword [0x5912bc]
call fcn.0047e2a3
add esp, 0x14
lea ecx, [esp + 0x3c]
push ebp
push 1
call fcn.0044e987
push ebp
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x86c], 1
call fcn.00450f58
xor ecx, ecx
inc ecx
call fcn.0048c305
mov ecx, eax
mov dword [esi + 0x54], ecx
test ecx, ecx
jne 0x48c150
cmp dword [0x5912bc], eax
je 0x48c0fd
call ebx
push eax
push str._ERROR___d___create_download_pub_info_failed_
push 1
push dword [0x5912bc]
call fcn.0047e2a3
add esp, 0x10
mov eax, dword [esi + 8]
test eax, eax
je 0x48c113
cmp eax, 0xffffffff
je 0x48c113
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebp
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 5
push eax
mov ecx, esi
call fcn.0048dcf3
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00450b32
or dword [esp + 0x864], 0xffffffff
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.00450b32
mov edi, dword [esp + 0x18]
jmp 0x48c2af
mov eax, dword [esi + 0xa0]
push ebp
mov dword [ecx + 0x10], eax
mov ecx, dword [esi + 0x54]
push ebp
call fcn.00490c89
mov eax, dword [esi + 0x54]
mov dword [eax + 0xc], esi
lea eax, [esp + 0x54]
mov ecx, dword [esi + 0x54]
push eax
call fcn.0049105a
cmp dword [0x5912bc], 0
je 0x48c197
call ebx
push eax
push str._INFO___d___create_download_main_thread.
push 3
push dword [0x5912bc]
call fcn.0047e2a3
add esp, 0x10
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebp
push eax
push ebp
push esi
push 0x48bb1d
push 0xa00000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x34], eax
test eax, eax
je 0x48c1dc
cmp eax, 0xffffffff
je 0x48c1dc
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00450b32
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.00450b32
jmp 0x48c2d4
cmp dword [0x5912bc], 0
je 0x48c1fd
call ebx
push eax
push str._ERROR___d___create_download_main_thread_failed_
push 1
push dword [0x5912bc]
call fcn.0047e2a3
add esp, 0x10
mov eax, dword [esi + 8]
test eax, eax
je 0x48c213
cmp eax, 0xffffffff
je 0x48c213
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebp
push 0x15
jmp 0x48c01e
cmp dword [0x5912bc], edi
je 0x48c23e
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._ERROR___d___download_url_is_empty.
push 1
push dword [0x5912bc]
call fcn.0047e2a3
add esp, 0x10
push 0x13
jmp 0x48bf19
cmp dword [0x5912bc], edi
je 0x48c269
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._ERROR___d___save_file_path_is_empty.
push 1
push dword [0x5912bc]
call fcn.0047e2a3
add esp, 0x10
mov eax, dword [esi + 8]
test eax, eax
je 0x48c281
cmp eax, 0xffffffff
je 0x48c281
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [esi + 8], eax
push 0x11
jmp 0x48bf19
cmp dword [0x5912bc], edi
je 0x48c2ac
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._ERROR___d___end_event_is_invalid.
push 1
push dword [0x5912bc]
call fcn.0047e2a3
add esp, 0x10
push 0x10
pop edi
test edi, edi
je 0x48c2d4
mov ecx, esi
call fcn.0048ea43
test al, al
je 0x48c2d4
xor eax, eax
mov ecx, esi
push eax
push eax
push edi
push 2
push dword [esi + 0xa0]
push 0xffffffffffffffff
call fcn.0048ef1b
xor eax, eax
test edi, edi
sete al
mov ecx, dword [esp + 0x85c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x840]
xor ecx, esp
call fcn.0050061e
add esp, 0x854
ret 0x1c