Function at 0x10046e50
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10092059
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x100bb0a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x3c], eax
xorps xmm0, xmm0
mov dword [ebp - 4], 0
xor bl, bl
movq qword [ebp - 0x34], xmm0
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x29], bl
mov dword [ebp - 0x34], 0x100c6dd4
mov byte [ebp - 0x30], bl
call fcn.100264e0
mov eax, dword [0x100c6de0]
lea ecx, [ebp - 0xe4]
sub eax, dword [0x100c6ddc]
sar eax, 2
push str.get_downloadurl_by_filename:_urlVec_size_is__d
mov byte [ebp - 4], 1
mov dword [ebp - 0x38], eax
call fcn.10011bb0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
mov dword [ebp - 0x48], ecx
lea ecx, [ebp - 0x48]
push ecx
push eax
mov dword [ebp - 0x44], fcn.1002a7d0
mov dword [ebp - 0x40], 0x1002d7e0
call fcn.1000c060
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10010910
add esp, 0x10
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 4
call fcn.10016790
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, dword [0x100c6ddc]
cmp esi, dword [0x100c6de0]
je 0x10046fba
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push 0x5c
cmovae eax, dword [ebp + 8]
push eax
call fcn.10066720
mov edi, eax
add esp, 8
test edi, edi
je 0x10046fa8
mov ebx, dword [esi]
inc edi
mov ecx, edi
lea eax, [ebx + 0x400]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x10046f78
test dl, dl
je 0x10046f74
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x10046f78
add ecx, 2
add eax, 2
test dl, dl
jne 0x10046f58
xor eax, eax
jmp 0x10046f7d
sbb eax, eax
or eax, 1
test eax, eax
je 0x10046fee
lea edx, [ebx + 0x504]
mov ecx, edx
lea ebx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10046f90
sub ecx, ebx
push ecx
push edx
push edi
call fcn.10075600
add esp, 0xc
test eax, eax
je 0x10046fee
add esi, 4
cmp esi, dword [0x100c6de0]
jne 0x10046f31
mov bl, byte [ebp - 0x29]
push str.get_downloadurl_by_filename:_no_find
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 1
cmp eax, 0x10
jb 0x10047074
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x1004706b
test cl, 0x1f
je 0x10047047
call fcn.1006fbb9
mov edx, dword [esi]
cmp byte [edx], 0
jne 0x10046ff9
xor ecx, ecx
jmp 0x10047009
mov ecx, edx
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10047000
sub ecx, edi
push ecx
mov ecx, dword [ebp - 0x3c]
push edx
call fcn.10002340
push 0x710
push dword [esi]
call fcn.1004f361
mov eax, dword [0x100c6de0]
lea ecx, [esi + 4]
sub eax, ecx
push eax
push ecx
push esi
call fcn.100652b0
add esp, 0x14
mov bl, 1
sub dword [0x100c6de0], 4
push str.get_downloadurl_by_filename:_find_downloadurl_in_urlVec
jmp 0x10046fbf
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x10047053
call fcn.1006fbb9
sub ecx, eax
cmp ecx, 4
jae 0x1004705f
call fcn.1006fbb9
cmp ecx, 0x23
jbe 0x10047069
call fcn.1006fbb9
mov ecx, eax
push ecx
call fcn.1004ebb6
add esp, 4
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp byte [ebp - 0x30], 0
mov byte [ebp - 4], 5
je 0x100470e7
mov ecx, dword [ebp - 0x34]
mov eax, SysReAllocStringLen
lock xadd dword [ecx], eax
test eax, 0x40000000
jne 0x100470e7
cmp eax, 0x80000000
jle 0x100470e7
lock bts dword [ecx], 0x1e
jb 0x100470e7
mov esi, dword [ecx + 4]
lea edi, [ecx + 4]
test esi, esi
jne 0x100470e0
push esi
push esi
call fcn.100230c0
mov edx, eax
add esp, 8
mov ecx, edx
xor eax, eax
lock cmpxchg dword [edi], ecx
mov esi, eax
test esi, esi
je 0x100470de
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100470e0
mov esi, edx
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp + 0x1c]
cmp eax, 0x10
jb 0x10047131
mov ecx, dword [ebp + 8]
inc eax
cmp eax, 0x1000
jb 0x10047128
test cl, 0x1f
je 0x10047104
call fcn.1006fbb9
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x10047110
call fcn.1006fbb9
sub ecx, eax
cmp ecx, 4
jae 0x1004711c
call fcn.1006fbb9
cmp ecx, 0x23
jbe 0x10047126
call fcn.1006fbb9
mov ecx, eax
push ecx
call fcn.1004ebb6
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004ebbb
mov esp, ebp
pop ebp
ret