Function at 0x4323f2
Capabilities:
Create thread

Disassembly:
push 0x854
mov eax, 0x507cb2
call fcn.004d998f
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x84c], eax
mov eax, dword [edi + 8]
xor ebx, ebx
mov dword [ebp - 0x85c], edi
mov dword [ebp - 0x860], edx
mov dword [ebp - 0x850], ecx
cmp eax, ebx
je 0x4327cd
cmp eax, 0xffffffff
je 0x4327cd
cmp ecx, ebx
je 0x4327a3
mov eax, ecx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x432442
sub eax, esi
sar eax, 1
cmp eax, 1
jb 0x4327a3
cmp dword [ebp + 0x10], ebx
jg 0x4324a7
cmp dword [0x5500d4], ebx
je 0x432484
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._ERROR___d___pid__d__error.
call fcn.00427581
add esp, 0xc
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x4327ee
cmp eax, 0xffffffff
je 0x4327ee
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], ebx
jmp 0x4327ee
mov eax, edx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4324ac
sub eax, edx
sar eax, 1
jne 0x4324da
cmp dword [0x5500d4], ebx
je 0x4327ee
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._ERROR___d___download_url_is_empty.
jmp 0x4327e1
push dword [ebp - 0x850]
lea eax, [edi + 0x3c]
push eax
call fcn.00403d50
mov eax, dword [ebp - 0x84c]
cmp eax, ebx
jne 0x4324f8
mov eax, 0x52dd20
push eax
lea eax, [edi + 0x40]
push eax
call fcn.00403d50
mov al, byte [ebp + 0x14]
mov byte [edi + 0x30], al
mov eax, dword [0x54b064]
mov esi, 0x54b064
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x850], eax
mov dword [ebp - 4], ebx
mov eax, dword [0x54b064]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x84c], eax
xor eax, eax
mov byte [ebp - 4], 1
push 0x7fe
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push ebx
push eax
mov dword [ebp - 0x854], ebx
call fcn.004d8c50
mov ecx, dword [ebp - 0x860]
add esp, 0xc
lea esi, [ebp - 0x810]
call fcn.004309f4
lea eax, [ebp - 0x854]
push eax
lea eax, [ebp - 0x84c]
push eax
lea edx, [ebp - 0x850]
mov ecx, esi
call fcn.0042987e
pop ecx
pop ecx
test al, al
jne 0x4325ea
cmp dword [0x5500d4], ebx
je 0x4325b1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._ERROR___d___parse_url_diy_failed_
mov ecx, dword [0x5500d4]
call fcn.00427581
pop ecx
pop ecx
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x4325c7
cmp eax, 0xffffffff
je 0x4325c7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], ebx
mov eax, dword [ebp - 0x84c]
add eax, 0xfffffff0
call fcn.00403e7d
mov eax, dword [ebp - 0x850]
add eax, 0xfffffff0
call fcn.00403e7d
mov al, bl
jmp 0x4327f0
lea eax, [ebp - 0x810]
push eax
lea eax, [edi + 0x48]
push eax
call fcn.00403d50
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x5500d4], ebx
je 0x432691
xor eax, eax
mov word [ebp - 0x82c], ax
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x82c]
mov dword [ebp - 0x818], 7
mov dword [ebp - 0x81c], ebx
call fcn.0040ed85
lea eax, [ebp - 0x848]
push eax
lea ecx, [ebp - 0x82c]
mov byte [ebp - 4], 2
call fcn.00428265
pop ecx
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 0x10
jb 0x43265a
mov eax, dword [eax]
push eax
call esi
mov ecx, dword [0x5500d4]
push eax
push str._INFO___d___download_url__s_.
call fcn.00427581
add esp, 0xc
push ebx
push 1
lea ecx, [ebp - 0x848]
call fcn.0040241d
push ebx
push 1
lea ecx, [ebp - 0x82c]
mov byte [ebp - 4], 1
call fcn.00403da4
xor ebx, ebx
inc ebx
call fcn.004327f8
xor ebx, ebx
mov dword [edi + 0x54], eax
cmp eax, ebx
jne 0x4326f3
cmp dword [0x5500d4], ebx
je 0x4326bf
call esi
mov ecx, dword [0x5500d4]
push eax
push str._ERROR___d___create_download_pub_info_failed_
call fcn.00427581
pop ecx
pop ecx
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x4326d5
cmp eax, 0xffffffff
je 0x4326d5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], ebx
lea edx, [ebp - 0x854]
mov ecx, edi
mov dword [ebp - 0x854], 5
call fcn.004340a7
mov bl, al
jmp 0x4325c7
mov ecx, dword [edi + 0xa0]
mov dword [eax + 0x10], ecx
mov ecx, dword [edi + 0x54]
push ebx
xor eax, eax
call fcn.00436d54
mov eax, dword [edi + 0x54]
mov dword [eax + 0xc], edi
mov edi, dword [edi + 0x54]
lea eax, [ebp - 0x810]
call fcn.004370ea
cmp dword [0x5500d4], ebx
je 0x432738
call esi
mov ecx, dword [0x5500d4]
push eax
push str._INFO___d___create_download_main_thread.
call fcn.00427581
pop ecx
pop ecx
mov edi, dword [ebp - 0x85c]
lea eax, [ebp - 0x858]
push eax
push ebx
push edi
push 0x4320f2
push 0xa00000
push ebx
mov dword [ebp - 0x858], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x34], eax
cmp eax, ebx
je 0x43278a
cmp eax, 0xffffffff
je 0x43278a
mov eax, dword [ebp - 0x84c]
add eax, 0xfffffff0
call fcn.00403e7d
mov eax, dword [ebp - 0x850]
add eax, 0xfffffff0
call fcn.00403e7d
mov al, 1
jmp 0x4327f0
cmp dword [0x5500d4], ebx
je 0x4325b1
call esi
push eax
push 0x52ddc4
jmp 0x4325a4
cmp dword [0x5500d4], ebx
je 0x432484
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._ERROR___d___save_file_path_is_empty.
call fcn.00427581
pop ecx
pop ecx
jmp 0x432484
cmp dword [0x5500d4], ebx
je 0x4327ee
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._ERROR___d___end_event_is_invalid.
mov ecx, dword [0x5500d4]
call fcn.00427581
pop ecx
pop ecx
xor al, al
call fcn.004d9a12
ret 0x10