Function at 0x432328
Capabilities:
Create thread

Disassembly:
push 0x854
mov eax, 0x507d6e
call fcn.004d9a2f
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 0x432703
cmp eax, 0xffffffff
je 0x432703
cmp ecx, ebx
je 0x4326d9
mov eax, ecx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x432378
sub eax, esi
sar eax, 1
cmp eax, 1
jb 0x4326d9
cmp dword [ebp + 0x10], ebx
jg 0x4323dd
cmp dword [0x5500d4], ebx
je 0x4323ba
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.0042749e
add esp, 0xc
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x432724
cmp eax, 0xffffffff
je 0x432724
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], ebx
jmp 0x432724
mov eax, edx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4323e2
sub eax, edx
sar eax, 1
jne 0x432410
cmp dword [0x5500d4], ebx
je 0x432724
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._ERROR___d___download_url_is_empty.
jmp 0x432717
push dword [ebp - 0x850]
lea eax, [edi + 0x3c]
push eax
call fcn.00403d8f
mov eax, dword [ebp - 0x84c]
cmp eax, ebx
jne 0x43242e
mov eax, 0x52dcf0
push eax
lea eax, [edi + 0x40]
push eax
call fcn.00403d8f
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.004d8ce0
mov ecx, dword [ebp - 0x860]
add esp, 0xc
lea esi, [ebp - 0x810]
call fcn.00430929
lea eax, [ebp - 0x854]
push eax
lea eax, [ebp - 0x84c]
push eax
lea edx, [ebp - 0x850]
mov ecx, esi
call fcn.0042976a
pop ecx
pop ecx
test al, al
jne 0x432520
cmp dword [0x5500d4], ebx
je 0x4324e7
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._ERROR___d___parse_url_diy_failed_
mov ecx, dword [0x5500d4]
call fcn.0042749e
pop ecx
pop ecx
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x4324fd
cmp eax, 0xffffffff
je 0x4324fd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], ebx
mov eax, dword [ebp - 0x84c]
add eax, 0xfffffff0
call fcn.00403eb2
mov eax, dword [ebp - 0x850]
add eax, 0xfffffff0
call fcn.00403eb2
mov al, bl
jmp 0x432726
lea eax, [ebp - 0x810]
push eax
lea eax, [edi + 0x48]
push eax
call fcn.00403d8f
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x5500d4], ebx
je 0x4325c7
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.0040ed76
lea eax, [ebp - 0x848]
push eax
lea ecx, [ebp - 0x82c]
mov byte [ebp - 4], 2
call fcn.00428151
pop ecx
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 0x10
jb 0x432590
mov eax, dword [eax]
push eax
call esi
mov ecx, dword [0x5500d4]
push eax
push str._INFO___d___download_url__s_.
call fcn.0042749e
add esp, 0xc
push ebx
push 1
lea ecx, [ebp - 0x848]
call fcn.0040248a
push ebx
push 1
lea ecx, [ebp - 0x82c]
mov byte [ebp - 4], 1
call fcn.00403de3
xor ebx, ebx
inc ebx
call fcn.0043272e
xor ebx, ebx
mov dword [edi + 0x54], eax
cmp eax, ebx
jne 0x432629
cmp dword [0x5500d4], ebx
je 0x4325f5
call esi
mov ecx, dword [0x5500d4]
push eax
push str._ERROR___d___create_download_pub_info_failed_
call fcn.0042749e
pop ecx
pop ecx
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x43260b
cmp eax, 0xffffffff
je 0x43260b
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.00433fdd
mov bl, al
jmp 0x4324fd
mov ecx, dword [edi + 0xa0]
mov dword [eax + 0x10], ecx
mov ecx, dword [edi + 0x54]
push ebx
xor eax, eax
call fcn.00436df3
mov eax, dword [edi + 0x54]
mov dword [eax + 0xc], edi
mov edi, dword [edi + 0x54]
lea eax, [ebp - 0x810]
call fcn.00437189
cmp dword [0x5500d4], ebx
je 0x43266e
call esi
mov ecx, dword [0x5500d4]
push eax
push str._INFO___d___create_download_main_thread.
call fcn.0042749e
pop ecx
pop ecx
mov edi, dword [ebp - 0x85c]
lea eax, [ebp - 0x858]
push eax
push ebx
push edi
push 0x432028
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 0x4326c0
cmp eax, 0xffffffff
je 0x4326c0
mov eax, dword [ebp - 0x84c]
add eax, 0xfffffff0
call fcn.00403eb2
mov eax, dword [ebp - 0x850]
add eax, 0xfffffff0
call fcn.00403eb2
mov al, 1
jmp 0x432726
cmp dword [0x5500d4], ebx
je 0x4324e7
call esi
push eax
push 0x52dd94
jmp 0x4324da
cmp dword [0x5500d4], ebx
je 0x4323ba
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._ERROR___d___save_file_path_is_empty.
call fcn.0042749e
pop ecx
pop ecx
jmp 0x4323ba
cmp dword [0x5500d4], ebx
je 0x432724
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._ERROR___d___end_event_is_invalid.
mov ecx, dword [0x5500d4]
call fcn.0042749e
pop ecx
pop ecx
xor al, al
call fcn.004d9ab2
ret 0x10