Function at 0x42cff6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
mov esi, eax
mov ebx, edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x4c], eax
call fcn.0056fda7
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x42d654
test ebx, ebx
je 0x42d1a7
test esi, esi
je 0x42d1a7
mov edx, 0x5cc9b4
mov eax, ebx
call fcn.00427968
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x42d085
cmp dword [0x5af054], 0
je 0x42d07b
mov dword [0x611418], 1
mov dword [0x611414], 3
mov dword [esp + 4], ebx
mov dword [esp], str._WGET__Failed_to_open_file__s_for_write._n
call fcn.004268ea
mov esi, 0xfffffffd
jmp 0x42d4d4
mov dword [esp], 0x510
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov ebx, eax
test eax, eax
jne 0x42d0dd
cmp dword [0x5af054], 0
je 0x42d1a7
mov dword [0x611418], 1
mov dword [0x611414], 3
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x479
mov dword [esp + 4], str.U:_src_gpac_0.7.1_src_utils_downloader.c
mov dword [esp], str._s:_d_Cannot_allocate_session_for_URL__s:_OUT_OF_MEMORY__n
call fcn.004268ea
jmp 0x42d1a7
mov ecx, 0x144
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
call fcn.00425c0a
mov dword [ebx + 0x444], eax
mov dword [ebx + 0x454], 1
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 0x10], 0
jne 0x42d110
mov dword [ebx + 0x4d0], 1
mov dword [ebx + 0x4e4], 0x4276c2
mov eax, dword [ebp - 0x44]
mov dword [ebx + 0x4e8], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebx + 4], eax
mov eax, dword [eax + 0x20]
mov dword [ebx + 0x4d8], eax
mov eax, esi
call fcn.0053ec83
mov dword [ebx + 0xc], eax
test eax, eax
jne 0x42d14a
mov dword [esp], ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x42d1a7
mov edx, esi
mov eax, ebx
call fcn.004294c8
mov dword [ebp - 0x40], eax
test eax, eax
je 0x42d1af
cmp dword [0x5af054], 1
jbe 0x42d1a0
mov dword [0x611418], 2
mov dword [0x611414], 3
call fcn.00427b4d
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x491
mov dword [esp + 4], str.U:_src_gpac_0.7.1_src_utils_downloader.c
mov dword [esp], str._s:_d_gf_dm_sess_new_simple:_error_s_at_setup_for__s_n
call fcn.004268ea
mov eax, ebx
call fcn.0042a734
or esi, 0xffffffff
jmp 0x42d4d4
mov dword [ebx + 0x44c], 0x14
xor eax, eax
mov dword [ebx + 0x4d4], eax
mov dword [ebx + 0x4dc], 1
cmp dword [ebp - 0x4c], 0
jne 0x42d1d7
cmp dword [ebp - 0x48], 0
je 0x42d205
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
mov dword [ebx + 0x498], eax
mov dword [ebx + 0x49c], edx
mov eax, dword [ebp - 0x48]
mov dword [ebx + 0x4a0], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebx + 0x4a4], eax
mov dword [ebx + 0x494], 1
mov eax, dword [ebx + 0x454]
and eax, 1
mov dword [ebp - 0x48], eax
jne 0x42d444
cmp dword [ebx + 8], 0
je 0x42d24f
cmp dword [0x5af054], 1
jbe 0x42d48e
mov dword [0x611418], 2
mov dword [0x611414], 3
mov dword [esp], str._HTTP__Session_already_started___ignoring_start_n
call fcn.004268ea
jmp 0x42d48e
mov edx, dword [ebx + 0x24]
mov dword [ebp - 0x4c], edx
mov dword [esp], 0x20
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov esi, eax
mov ecx, 8
mov edi, eax
mov eax, dword [ebp - 0x48]
rep stosd dword es:[edi], eax
mov edx, dword [ebp - 0x4c]
test edx, edx
je 0x42d27b
mov dword [esp], edx
jmp 0x42d295
mov dword [esp + 8], esi
mov dword [esp + 4], 0x5cd1e0
lea edi, [ebp - 0x2c]
mov dword [esp], edi
call fcn.005ae188
mov dword [esp], edi
call sub.api_ms_win_crt_string_l1_1_0.dll__strdup
mov dword [esi + 0x1c], eax
mov eax, dword [0x611710]
test eax, eax
jne 0x42d2b0
call fcn.00425c0a
mov dword [0x611710], eax
mov edx, esi
call fcn.00425c52
mov dword [ebx + 8], esi
cmp dword [esi + 0xc], 0
jne 0x42d48e
cmp dword [esi + 0x14], 0
jne 0x42d48e
mov dword [esi + 0xc], 0x42a672
mov dword [esi + 0x10], ebx
mov dword [esp], 4
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov edi, eax
test eax, eax
jne 0x42d315
cmp dword [0x5af12c], 0
je 0x42d36c
mov dword [0x611418], 1
mov dword [0x611414], 0x15
mov dword [esp], str.Couldnt_allocate_semaphore_n
call fcn.004268ea
jmp 0x42d36c
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
sub esp, 0x10
mov dword [edi], eax
test eax, eax
jne 0x42d36e
cmp dword [0x5af12c], 0
je 0x42d364
mov dword [0x611418], 1
mov dword [0x611414], 0x15
mov dword [esp], str.Couldnt_create_semaphore_n
call fcn.004268ea
mov dword [esp], edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
xor edi, edi
mov dword [esi + 0x14], edi
lea eax, [ebp - 0x2c]
mov dword [esp + 0x14], eax
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x53d03b
mov eax, dword [esi + 8]
mov dword [esp + 4], eax
xor edi, edi
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
sub esp, 0x18
mov dword [esi + 4], eax
test eax, eax
jne 0x42d3b1
mov dword [esi], 2
jmp 0x42d48e
mov dword [esp + 4], 0xffffffff
mov eax, dword [esi + 0x14]
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push eax
push eax
mov edi, dword [esi + 0x14]
mov eax, dword [edi]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
test eax, eax
jne 0x42d40f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x5af12c], 0
je 0x42d40f
mov dword [0x611418], 1
mov dword [0x611414], 0x15
mov dword [esp + 4], eax
mov dword [esp], str._Mutex__CloseHandle_when_deleting_semaphore_failed_with_error_code__d_n
call fcn.004268ea
mov dword [esp], edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
xor edi, edi
mov dword [esi + 0x14], edi
jmp 0x42d48e
mov eax, 1
shl eax, cl
lea edx, [ecx - 1]
cmp edx, 0xa
ja 0x42d45c
test eax, 0x2dc
jne 0x42d425
test eax, 0x122
je 0x42d457
mov dword [esp], ebx
call dword [ebx + 0x4e0]
mov ecx, dword [ebx + 0x450]
test ecx, ecx
jne 0x42d41e
mov eax, ebx
call fcn.00429de7
jmp 0x42d444
test ah, 0xc
jne 0x42d485
cmp dword [0x5af054], 0
je 0x42d485
mov dword [0x611418], 1
mov dword [0x611414], 3
mov dword [esp], str._Downloader__Session_in_unknown_state______aborting_n
call fcn.004268ea
mov eax, dword [ebx + 0x4c4]
mov dword [ebp - 0x40], eax
xor ecx, ecx
cmp dword [ebp - 0x40], 0
sete cl
mov eax, dword [ebx + 0x434]
mov edx, ebx
call fcn.0053eec9
mov esi, dword [ebp - 0x40]
or esi, eax
mov eax, dword [ebp - 0x44]
call fcn.00425b84
cmp dword [ebp + 0x18], 0
je 0x42d4cd
cmp dword [ebx + 0x28], 0
je 0x42d4cd
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
call sub.api_ms_win_crt_string_l1_1_0.dll__strdup
mov edi, dword [ebp + 0x18]
mov dword [edi], eax
mov eax, ebx
call fcn.0042a734
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
call fcn.0057fbcb
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x50]
test ecx, ecx
je 0x42d52f
cmp dword [ecx + 4], 0
je 0x42d52f
xor edx, edx
mov eax, ecx
call fcn.00425c8e
mov ebx, eax
mov eax, ecx
call fcn.00425e11
mov eax, dword [ebx + 0x18]
call fcn.00422f9d
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov dword [esp], ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x42d4de
cmp dword [eax + 4], 0
je 0x42d539
xor edx, edx
call fcn.00425c8e
call fcn.0042a734
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x42d51d
call fcn.00425c2c
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
mov dword [eax + 0x1c], ecx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x42d572
cmp dword [ecx + 4], 0
je 0x42d572
xor edx, edx
mov eax, ecx
call fcn.00425c8e
mov ebx, eax
mov eax, ecx
call fcn.00425e11
mov dword [esp], ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x42d546
mov eax, ecx
call fcn.00425c2c
mov eax, dword [ebp - 0x3c]
xor edx, edx
mov dword [eax + 0x44], edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x48]
test ecx, ecx
je 0x42d5ad
cmp dword [ecx + 4], 0
je 0x42d5ad
xor edx, edx
mov eax, ecx
call fcn.00425c8e
mov ebx, eax
mov eax, ecx
call fcn.00425e11
mov dword [esp], ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x42d581
mov eax, ecx
call fcn.00425c2c
mov eax, dword [ebp - 0x3c]
xor edi, edi
mov dword [eax + 0x48], edi
cmp dword [eax + 0x2c], 0
setne bl
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x4c]
test ecx, ecx
je 0x42d5fd
cmp dword [ecx + 4], 0
je 0x42d5fd
xor edx, edx
mov eax, ecx
call fcn.00425c8e
mov edi, eax
mov eax, ecx
call fcn.00425e11
test edi, edi
je 0x42d5f4
test bl, bl
je 0x42d5f4
mov dword [edi + 0x44], 1
mov eax, edi
call fcn.0057f8ae
jmp 0x42d5c3
mov eax, ecx
call fcn.00425c2c
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
mov dword [eax + 0x4c], ecx
mov eax, dword [eax + 0x50]
call fcn.00425c2c
mov eax, dword [ebp - 0x3c]
xor ebx, ebx
mov dword [eax + 0x50], ebx
mov eax, dword [eax + 4]
test eax, eax
je 0x42d62b
mov dword [esp], eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov eax, dword [ebp - 0x3c]
xor edx, edx
mov dword [eax + 4], edx
mov dword [eax + 0x18], edx
mov eax, dword [eax]
call fcn.0053edf9
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
call fcn.0053ed3a
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x42d659
mov esi, 0xfffffffe
mov eax, esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret