Function at 0x41d000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x140
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, dword [0x520014]
xor eax, ebp
mov dword [esp + 0x138], eax
push 0xc
call fcn.00489952
add esp, 4
mov ebx, eax
mov ecx, eax
push esi
call fcn.004d1920
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x120]
movdqa xmmword [esi], xmm0
mov dword [esi + 0x10], 0xffffffff
mov ecx, esi
push 0
call fcn.004d4ef0
mov ecx, esi
push dword [ebp + 0xc]
call fcn.004d5620
test al, al
jne 0x41d077
mov eax, dword [edi + 0x6c]
test eax, eax
je 0x41d077
lea ecx, [esp + 0x120]
push eax
call fcn.004d5300
xor eax, eax
dec eax
lea esi, [esp + 0x114]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov ecx, edi
push dword [esp + 0x124]
push esi
call fcn.0041cd30
mov eax, dword [esi]
cmp eax, dword [esi + 4]
mov dword [esp + 0x1c], ebx
jne 0x41d10b
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edi, [esp + 0x50]
push eax
push edi
call fcn.004b86f0
add esp, 8
lea esi, [esp + 0xb8]
mov ecx, esi
push edi
push 0x353
push str.DownloadModule
push 1
call fcn.004b84f0
lea ecx, [esp + 0xf4]
push 0x504d1d
push str.Setup_url_is_empty.
call fcn.004b45d0
mov ecx, esi
call fcn.004b8530
cmp byte [edi + 0xb], 0
jns 0x41d101
push dword [esp + 0x50]
call fcn.00489982
add esp, 4
mov ebx, 2
jmp 0x41d722
mov dword [esp + 0x10], edi
lea esi, [esp + 0xb8]
mov ecx, esi
push 0x356
push str.DownloadModule
push 0
call fcn.004b83c0
lea ecx, [esp + 0xf4]
push 0x504d35
push str.Selected_download_urls:
call fcn.004b45d0
mov ecx, esi
call fcn.004374c0
mov edi, dword [esp + 0x114]
mov esi, dword [esp + 0x118]
cmp edi, esi
je 0x41d19f
lea ebx, [esp + 0xb8]
mov ecx, ebx
push 0x358
push str.DownloadModule
push 0
call fcn.004b83c0
movzx eax, byte [edi + 0xb]
mov edx, edi
test al, al
jns 0x41d181
mov edx, dword [edi]
mov eax, dword [edi + 4]
add eax, edx
lea ecx, [esp + 0xf4]
push eax
push edx
call fcn.004b45d0
mov ecx, ebx
call fcn.004374c0
add edi, 0xc
cmp esi, edi
jne 0x41d15f
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0x64]
mov dword [esp + 0xb0], 0x501d20
mov dword [esp + 0xb4], eax
mov ecx, edi
call fcn.0041d850
xor eax, eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x118]
sub eax, dword [esp + 0x114]
mov ecx, eax
sar ecx, 2
cmp eax, 0xc
mov ebx, 6
cmovne ebx, ecx
test ebx, ebx
je 0x41d7a6
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], ebx
push 0
push dword [edi + 0xc4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41d7a6
mov ecx, dword [esp + 0x114]
mov eax, dword [esp + 0x118]
sub eax, ecx
sar eax, 2
imul esi, eax, 0xaaaaaaab
mov eax, ebx
xor edx, edx
div esi
mov esi, eax
mov eax, dword [esp + 0x14]
xor edx, edx
mov dword [esp + 0x34], esi
div esi
lea eax, [eax + eax*2]
lea esi, [ecx + eax*4]
mov al, byte [esp + 0xab]
test al, al
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0xc], eax
movzx edx, al
mov ebx, edx
mov dword [esp + 0x18], ecx
cmovs ebx, ecx
movzx ecx, byte [esi + 0xb]
test cl, cl
mov edi, dword [esi + 4]
mov eax, ecx
mov dword [esp + 0x30], edi
cmovs eax, edi
mov dword [esp + 0x2c], eax
cmp ebx, eax
jne 0x41d2df
mov edi, esi
test cl, cl
jns 0x41d296
mov edi, dword [esi]
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0xa0]
lea eax, [esp + 0xa0]
cmp byte [esp + 0xc], 0
mov dword [esp + 8], esi
cmovs eax, esi
js 0x41d316
xor ebx, ebx
cmp byte [esp + 0xc], 0
je 0x41d366
dec edx
mov eax, dword [esp + 8]
mov esi, dword [esp + 0x28]
cmp al, byte [edi + ebx]
jne 0x41d2df
cmp edx, ebx
je 0x41d348
mov al, byte [esp + ebx + 0xa1]
inc ebx
jmp 0x41d2cc
lea eax, [esp + 0xa0]
cmp eax, esi
mov ebx, dword [esp + 0x1c]
je 0x41d38b
cmp byte [esp + 0xc], 0
js 0x41d372
test cl, cl
js 0x41d352
mov eax, dword [esi + 8]
mov dword [esp + 0xa8], eax
movq xmm0, qword [esi]
movq qword [esp + 0xa0], xmm0
jmp 0x41d38b
test ebx, ebx
je 0x41d348
push ebx
push edi
push eax
call fcn.0048bd5d
add esp, 0xc
test eax, eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov esi, dword [esp + 0x18]
je 0x41d3a7
lea eax, [esp + 0xa0]
cmp eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x1c]
jne 0x41d37a
jmp 0x41d38b
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
jmp 0x41d36c
lea ecx, [esp + 0xa0]
push dword [esp + 0x30]
push dword [esi]
call fcn.0046c420
jmp 0x41d38b
xor edx, edx
mov ecx, dword [esp + 8]
mov esi, dword [esp + 0x18]
jmp 0x41d3a7
test cl, cl
jns 0x41d378
mov esi, dword [esi]
mov edi, esi
lea ecx, [esp + 0xa0]
push dword [esp + 0x2c]
push edi
call fcn.0046c320
mov ecx, ebx
call fcn.004d19a0
mov dl, byte [esp + 0xab]
mov ecx, dword [esp + 0xa0]
mov esi, dword [esp + 0xa4]
xor eax, eax
dec eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
test dl, dl
lea eax, [esp + 0xa0]
cmovns ecx, eax
movzx ebx, dl
cmovs ebx, esi
cmp ebx, 0x7ffffff0
mov edi, dword [esp + 0x10]
jae 0x41d841
mov dword [esp + 8], ecx
cmp ebx, 5
jae 0x41d402
mov byte [esp + 0x9f], bl
lea eax, [esp + 0x94]
test ebx, ebx
mov esi, dword [esp + 8]
jne 0x41d433
jmp 0x41d444
lea esi, [ebx + 8]
and esi, 0xfffffff8
lea eax, [esi + esi]
push eax
call fcn.00489952
add esp, 4
mov dword [esp + 0x94], eax
or esi, 0x80000000
mov dword [esp + 0x9c], esi
mov dword [esp + 0x98], ebx
mov esi, dword [esp + 8]
xor ecx, ecx
movsx edx, byte [esi + ecx]
mov word [eax], dx
add eax, 2
inc ecx
cmp ebx, ecx
jne 0x41d435
mov word [eax], 0
xor eax, eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x74], eax
pxor xmm0, xmm0
movdqu xmmword [esp + 0x5c], xmm0
movdqa xmmword [esp + 0x50], xmm0
mov ecx, edi
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0xb4]
push eax
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x98]
push eax
mov edi, dword [esp + 0x30]
push edi
lea eax, [esp + 0xac]
push eax
call fcn.0041cfb0
test al, al
jne 0x41d4c8
cmp dword [esp + 0x50], 0
jne 0x41d645
mov esi, dword [edi + 4]
test al, al
je 0x41d539
mov eax, esi
mov esi, dword [esp + 0x14]
lea ecx, [esi + 1]
mov dword [esp + 8], ecx
mov edi, dword [esp + 0x10]
mov ecx, edi
lea ebx, [esp + 0x120]
push ebx
lea edx, [esp + 0x7c]
push edx
lea edx, [esp + 0x90]
push edx
push dword [esp + 0x80]
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0xac]
push eax
push 1
call fcn.0041b750
xor eax, eax
cmp dword [esp + 0x34], esi
seta al
mov ecx, ebx
push eax
call fcn.004d5550
mov dword [esp + 8], 0
mov dword [esp + 0x24], 0
mov ebx, dword [esp + 0x20]
jmp 0x41d5b6
mov ebx, dword [esp + 0x74]
lea eax, [ebx + ebx]
lea eax, [eax + eax*4]
mov ecx, 0x51eb851f
mul ecx
shr edx, 5
cmp esi, edx
mov edx, ebx
jae 0x41d55e
mov ecx, edi
call fcn.004d19a0
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x14]
lea ebx, [eax + 1]
mov edi, dword [esp + 0x10]
mov ecx, edi
lea eax, [esp + 0x120]
push eax
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x90]
push eax
push edx
push esi
push ebx
lea eax, [esp + 0xac]
push eax
push 0
call fcn.0041b750
mov al, 1
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
cmp ebx, eax
mov ebx, eax
jae 0x41d5b6
mov ecx, edi
call fcn.0041da20
push eax
push dword [edi + 0xc4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [esp + 0x6b], 0
jns 0x41d5c9
push dword [esp + 0x60]
call fcn.00489982
add esp, 4
cmp byte [esp + 0x5f], 0
jns 0x41d5dc
push dword [esp + 0x54]
call fcn.00489982
add esp, 4
cmp byte [esp + 0x83], 0
jns 0x41d5f2
push dword [esp + 0x78]
call fcn.00489982
add esp, 4
cmp byte [esp + 0x93], 0
jns 0x41d60b
push dword [esp + 0x88]
call fcn.00489982
add esp, 4
cmp byte [esp + 0x9f], 0
jns 0x41d624
push dword [esp + 0x94]
call fcn.00489982
add esp, 4
cmp byte [esp + 8], 0
je 0x41d705
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, ebx
jne 0x41d208
jmp 0x41d7a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea esi, [esp + 0x48]
push esi
call fcn.004b86f0
add esp, 8
lea ecx, [esp + 0xb8]
push esi
push 0x377
push str.DownloadModule
push 1
call fcn.004b84f0
lea eax, [esp + 0x50]
push eax
lea esi, [esp + 0x3c]
push esi
call fcn.004d4bb0
add esp, 8
movzx eax, byte [esp + 0x43]
mov edx, esi
test al, al
jns 0x41d697
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
add eax, edx
lea ecx, [esp + 0xf4]
push eax
push edx
call fcn.004b45d0
cmp byte [esp + 0x43], 0
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
jns 0x41d6c2
push dword [esp + 0x38]
call fcn.00489982
add esp, 4
lea ecx, [esp + 0xb8]
call fcn.004b8530
cmp byte [esp + 0x4f], 0
jns 0x41d6e1
push dword [esp + 0x44]
call fcn.00489982
add esp, 4
lea eax, [esp + 0x50]
push eax
call fcn.00448f80
add esp, 4
movzx eax, al
or eax, 2
mov dword [esp + 0x24], eax
mov dword [esp + 8], 0
jmp 0x41d5b6
mov ebx, dword [esp + 0x24]
cmp byte [esp + 0xab], 0
jns 0x41d722
push dword [esp + 0xa0]
call fcn.00489982
add esp, 4
mov esi, dword [esp + 0x114]
test esi, esi
je 0x41d771
mov eax, dword [esp + 0x118]
cmp eax, esi
je 0x41d83a
lea edi, [eax - 0xc]
cmp byte [eax - 1], 0
js 0x41d74d
mov eax, edi
cmp esi, edi
jne 0x41d73c
jmp 0x41d75a
push dword [eax - 0xc]
call fcn.00489982
add esp, 4
jmp 0x41d745
mov eax, dword [esp + 0x114]
mov dword [esp + 0x118], esi
push eax
call fcn.00489982
add esp, 4
lea ecx, [esp + 0x120]
call fcn.004d4f20
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x41d78c
push 1
call fcn.004b51d0
mov ecx, dword [esp + 0x138]
xor ecx, ebp
call fcn.0048a678
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esp + 0x50]
push eax
push esi
call fcn.004b86f0
add esp, 8
lea ecx, [esp + 0xb8]
push esi
push 0x390
push str.DownloadModule
push 1
call fcn.004b84f0
lea edi, [esp + 0xc0]
lea ecx, [esp + 0xf4]
push 0x504d54
push str.Max_download_attempts_failed__
call fcn.004b45d0
mov ecx, edi
push ebx
call fcn.004b4b80
mov ecx, eax
push 0x504d56
call fcn.004b4b00
lea ecx, [esp + 0xb8]
call fcn.004b8530
cmp byte [esi + 0xb], 0
jns 0x41d822
push dword [esp + 0x50]
call fcn.00489982
add esp, 4
lea ecx, [esp + 0x120]
push 0
call fcn.004d5550
mov ebx, 2
jmp 0x41d709
mov eax, esi
jmp 0x41d761
lea ecx, [esp + 0x94]
call fcn.004c9f10
int3