Function at 0x10046d70
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10091fa9
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.10026090
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.100118d0
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.10020d00
mov dword [ebp - 0x40], 0x1002d630
call fcn.1000bd80
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10010630
add esp, 0x10
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 4
call fcn.10016540
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 0x10046eda
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push 0x5c
cmovae eax, dword [ebp + 8]
push eax
call fcn.100666c0
mov edi, eax
add esp, 8
test edi, edi
je 0x10046ec8
mov ebx, dword [esi]
inc edi
mov ecx, edi
lea eax, [ebx + 0x400]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x10046e98
test dl, dl
je 0x10046e94
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x10046e98
add ecx, 2
add eax, 2
test dl, dl
jne 0x10046e78
xor eax, eax
jmp 0x10046e9d
sbb eax, eax
or eax, 1
test eax, eax
je 0x10046f0e
lea edx, [ebx + 0x504]
mov ecx, edx
lea ebx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10046eb0
sub ecx, ebx
push ecx
push edx
push edi
call fcn.10075680
add esp, 0xc
test eax, eax
je 0x10046f0e
add esi, 4
cmp esi, dword [0x100c6de0]
jne 0x10046e51
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 0x10046f94
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x10046f8b
test cl, 0x1f
je 0x10046f67
call fcn.1006fbaa
mov edx, dword [esi]
cmp byte [edx], 0
jne 0x10046f19
xor ecx, ecx
jmp 0x10046f29
mov ecx, edx
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10046f20
sub ecx, edi
push ecx
mov ecx, dword [ebp - 0x3c]
push edx
call fcn.100023a0
push 0x710
push dword [esi]
call fcn.1004f321
mov eax, dword [0x100c6de0]
lea ecx, [esi + 4]
sub eax, ecx
push eax
push ecx
push esi
call fcn.10065250
add esp, 0x14
mov bl, 1
sub dword [0x100c6de0], 4
push str.get_downloadurl_by_filename:_find_downloadurl_in_urlVec
jmp 0x10046edf
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x10046f73
call fcn.1006fbaa
sub ecx, eax
cmp ecx, 4
jae 0x10046f7f
call fcn.1006fbaa
cmp ecx, 0x23
jbe 0x10046f89
call fcn.1006fbaa
mov ecx, eax
push ecx
call fcn.1004eb86
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 0x10047007
mov ecx, dword [ebp - 0x34]
mov eax, SysReAllocStringLen
lock xadd dword [ecx], eax
test eax, 0x40000000
jne 0x10047007
cmp eax, 0x80000000
jle 0x10047007
lock bts dword [ecx], 0x1e
jb 0x10047007
mov esi, dword [ecx + 4]
lea edi, [ecx + 4]
test esi, esi
jne 0x10047000
push esi
push esi
call fcn.10022d20
mov edx, eax
add esp, 8
mov ecx, edx
xor eax, eax
lock cmpxchg dword [edi], ecx
mov esi, eax
test esi, esi
je 0x10046ffe
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10047000
mov esi, edx
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp + 0x1c]
cmp eax, 0x10
jb 0x10047051
mov ecx, dword [ebp + 8]
inc eax
cmp eax, 0x1000
jb 0x10047048
test cl, 0x1f
je 0x10047024
call fcn.1006fbaa
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x10047030
call fcn.1006fbaa
sub ecx, eax
cmp ecx, 4
jae 0x1004703c
call fcn.1006fbaa
cmp ecx, 0x23
jbe 0x10047046
call fcn.1006fbaa
mov ecx, eax
push ecx
call fcn.1004eb86
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.1004eb8b
mov esp, ebp
pop ebp
ret