Function at 0x41dac0
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.0048e8dd
add esp, 4
mov ebx, eax
mov ecx, eax
push esi
call fcn.004d6690
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x120]
movdqa xmmword [esi], xmm0
mov dword [esi + 0x10], 0xffffffff
mov ecx, esi
push 0
call fcn.004d9c20
mov ecx, esi
push dword [ebp + 0xc]
call fcn.004da2e0
test al, al
jne 0x41db37
mov eax, dword [edi + 0x70]
test eax, eax
je 0x41db37
lea ecx, [esp + 0x120]
push eax
call fcn.004d9fd0
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.0041d800
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jne 0x41dbc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edi, [esp + 0x50]
push eax
push edi
call fcn.004bcc70
add esp, 8
lea esi, [esp + 0xb8]
mov ecx, esi
push edi
push 0x352
push str.DownloadModule
push 1
call fcn.004bca70
lea ecx, [esp + 0xf4]
push 0x50697d
push str.Setup_url_is_empty.
call fcn.004b9460
mov ecx, esi
call fcn.004bcab0
cmp byte [edi + 0xb], 0
jns 0x41dbbd
push dword [esp + 0x50]
call fcn.0048e90d
add esp, 4
mov edi, 2
jmp 0x41e1e4
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], ebx
lea esi, [esp + 0xb8]
mov ecx, esi
push 0x355
push str.DownloadModule
push 0
call fcn.0043a1a0
lea ecx, [esp + 0xf4]
push 0x506995
push str.Selected_download_urls:
call fcn.004b9460
mov ecx, esi
call fcn.0043a3d0
mov edi, dword [esp + 0x114]
mov esi, dword [esp + 0x118]
cmp edi, esi
je 0x41dc5f
lea ebx, [esp + 0xb8]
mov ecx, ebx
push 0x357
push str.DownloadModule
push 0
call fcn.0043a1a0
movzx eax, byte [edi + 0xb]
mov edx, edi
test al, al
jns 0x41dc41
mov edx, dword [edi]
mov eax, dword [edi + 4]
add eax, edx
lea ecx, [esp + 0xf4]
push eax
push edx
call fcn.004b9460
mov ecx, ebx
call fcn.0043a3d0
add edi, 0xc
cmp edi, esi
jne 0x41dc1f
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x68]
mov dword [esp + 0xb0], 0x503d20
mov dword [esp + 0xb4], eax
mov ecx, esi
call fcn.0041e320
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 edi, 6
cmovne edi, ecx
test edi, edi
je 0x41e272
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], edi
push 0
push dword [esi + 0xc8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41e272
mov ecx, dword [esp + 0x114]
mov eax, dword [esp + 0x118]
sub eax, ecx
sar eax, 2
imul esi, eax, 0xaaaaaaab
mov eax, edi
xor edx, edx
div esi
mov esi, eax
mov eax, dword [esp + 0x18]
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 + 0x10], eax
movzx edx, al
mov ebx, edx
mov dword [esp + 0x1c], 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 0x41dda3
mov edi, esi
test cl, cl
jns 0x41dd56
mov edi, dword [esi]
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0xa0]
lea eax, [esp + 0xa0]
cmp byte [esp + 0x10], 0
mov dword [esp + 8], esi
cmovs eax, esi
js 0x41ddda
xor ebx, ebx
cmp byte [esp + 0x10], 0
je 0x41de2a
dec edx
mov eax, dword [esp + 8]
mov esi, dword [esp + 0x28]
cmp al, byte [edi + ebx]
jne 0x41dda3
cmp edx, ebx
je 0x41de20
mov al, byte [esp + ebx + 0xa1]
inc ebx
jmp 0x41dd8c
lea eax, [esp + 0xa0]
cmp eax, esi
mov ebx, dword [esp + 0xc]
je 0x41de4f
cmp byte [esp + 0x10], 0
js 0x41de36
test cl, cl
js 0x41de0c
mov eax, dword [esi + 8]
mov dword [esp + 0xa8], eax
movq xmm0, qword [esi]
movq qword [esp + 0xa0], xmm0
jmp 0x41de4f
test ebx, ebx
je 0x41de20
push ebx
push edi
push eax
call fcn.00490c9d
add esp, 0xc
test eax, eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
je 0x41de6b
lea eax, [esp + 0xa0]
cmp eax, dword [esp + 0x28]
mov ebx, dword [esp + 0xc]
jne 0x41de3e
jmp 0x41de4f
lea ecx, [esp + 0xa0]
push dword [esp + 0x30]
push dword [esi]
call fcn.0046b010
jmp 0x41de4f
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
jmp 0x41de30
xor edx, edx
mov ecx, dword [esp + 8]
mov esi, dword [esp + 0x1c]
jmp 0x41de6b
test cl, cl
jns 0x41de3c
mov esi, dword [esi]
mov edi, esi
lea ecx, [esp + 0xa0]
push dword [esp + 0x2c]
push edi
call fcn.0046af20
mov ecx, ebx
call fcn.004d6710
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 + 0x14]
jae 0x41e311
mov dword [esp + 8], ecx
cmp ebx, 5
jae 0x41dec6
mov byte [esp + 0x9f], bl
lea eax, [esp + 0x94]
test ebx, ebx
mov esi, dword [esp + 8]
jne 0x41def7
jmp 0x41df08
lea esi, [ebx + 8]
and esi, 0xfffffff8
lea eax, [esi + esi]
push eax
call fcn.0048e8dd
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 0x41def9
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 ebx, dword [esp + 0x20]
push ebx
lea eax, [esp + 0xac]
push eax
call fcn.0041da70
test al, al
jne 0x41df8c
cmp dword [esp + 0x50], 0
jne 0x41e10b
mov esi, dword [ebx + 4]
mov edi, dword [esp + 0x74]
test al, al
je 0x41dffd
mov eax, esi
mov esi, dword [esp + 0x18]
lea ecx, [esi + 1]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x14]
lea ebx, [esp + 0x120]
push ebx
lea edx, [esp + 0x7c]
push edx
lea edx, [esp + 0x90]
push edx
push edi
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0xac]
push eax
push 1
call fcn.0041c0b0
xor eax, eax
cmp dword [esp + 0x34], esi
seta al
mov ecx, ebx
mov ebx, dword [esp + 0xc]
push eax
call fcn.004da210
mov dword [esp + 8], 0
mov dword [esp + 0x24], 0
mov edi, dword [esp + 0x20]
jmp 0x41e078
lea eax, [edi + edi]
lea eax, [eax + eax*4]
mov ecx, 0x51eb851f
mul ecx
shr edx, 5
cmp esi, edx
jae 0x41e01c
mov ecx, ebx
call fcn.004d6710
mov edi, dword [esp + 0x74]
mov eax, dword [esp + 0x18]
lea ebx, [eax + 1]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x120]
push eax
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x90]
push eax
push edi
push esi
push ebx
lea eax, [esp + 0xac]
push eax
push 0
call fcn.0041c0b0
mov al, 1
mov dword [esp + 8], eax
mov edi, dword [esp + 0x20]
cmp ebx, edi
jae 0x41e074
mov esi, dword [esp + 0x14]
mov ecx, esi
call fcn.0041e4f0
push eax
push dword [esi + 0xc8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [esp + 0xc]
cmp byte [esp + 0x6b], 0
jns 0x41e08b
push dword [esp + 0x60]
call fcn.0048e90d
add esp, 4
cmp byte [esp + 0x5f], 0
mov esi, dword [esp + 0x14]
jns 0x41e0a2
push dword [esp + 0x54]
call fcn.0048e90d
add esp, 4
cmp byte [esp + 0x83], 0
jns 0x41e0b8
push dword [esp + 0x78]
call fcn.0048e90d
add esp, 4
cmp byte [esp + 0x93], 0
jns 0x41e0d1
push dword [esp + 0x88]
call fcn.0048e90d
add esp, 4
cmp byte [esp + 0x9f], 0
jns 0x41e0ea
push dword [esp + 0x94]
call fcn.0048e90d
add esp, 4
cmp byte [esp + 8], 0
je 0x41e1c7
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, edi
jne 0x41dcc8
jmp 0x41e272
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea esi, [esp + 0x48]
push esi
call fcn.004bcc70
add esp, 8
lea ecx, [esp + 0xb8]
push esi
push 0x376
push str.DownloadModule
push 1
call fcn.004bca70
lea eax, [esp + 0x50]
push eax
lea esi, [esp + 0x3c]
push esi
call fcn.004d9880
add esp, 8
movzx eax, byte [esp + 0x43]
mov edx, esi
test al, al
jns 0x41e15d
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
add eax, edx
lea ecx, [esp + 0xf4]
push eax
push edx
call fcn.004b9460
cmp byte [esp + 0x43], 0
mov edi, dword [esp + 0x20]
jns 0x41e184
push dword [esp + 0x38]
call fcn.0048e90d
add esp, 4
lea ecx, [esp + 0xb8]
call fcn.004bcab0
cmp byte [esp + 0x4f], 0
jns 0x41e1a3
push dword [esp + 0x44]
call fcn.0048e90d
add esp, 4
lea eax, [esp + 0x50]
push eax
call fcn.0044cbb0
add esp, 4
movzx eax, al
or eax, 2
mov dword [esp + 0x24], eax
mov dword [esp + 8], 0
jmp 0x41e078
mov edi, dword [esp + 0x24]
cmp byte [esp + 0xab], 0
jns 0x41e1e4
push dword [esp + 0xa0]
call fcn.0048e90d
add esp, 4
mov esi, dword [esp + 0x114]
test esi, esi
je 0x41e23f
mov eax, dword [esp + 0x118]
cmp eax, esi
je 0x41e30a
mov dword [esp + 0xc], ebx
mov ebx, edi
lea edi, [eax - 0xc]
cmp byte [eax - 1], 0
js 0x41e215
mov eax, edi
cmp edi, esi
jne 0x41e204
jmp 0x41e222
push dword [eax - 0xc]
call fcn.0048e90d
add esp, 4
jmp 0x41e20d
mov eax, dword [esp + 0x114]
mov edi, ebx
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x118], esi
push eax
call fcn.0048e90d
add esp, 4
lea ecx, [esp + 0x120]
call fcn.004d9c50
test ebx, ebx
je 0x41e258
mov ecx, ebx
push 1
call fcn.004ba150
mov ecx, dword [esp + 0x138]
xor ecx, ebp
call fcn.0048f468
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ebx, [esp + 0x50]
push eax
push ebx
call fcn.004bcc70
add esp, 8
lea ecx, [esp + 0xb8]
push ebx
push 0x38f
push str.DownloadModule
push 1
call fcn.004bca70
lea esi, [esp + 0xc0]
lea ecx, [esp + 0xf4]
push 0x5069b4
push str.Max_download_attempts_failed__
call fcn.004b9460
mov ecx, esi
push edi
call fcn.004b9c40
mov ecx, eax
push 0x5069b6
call fcn.004b9bc0
lea ecx, [esp + 0xb8]
call fcn.004bcab0
cmp byte [ebx + 0xb], 0
jns 0x41e2ee
push dword [esp + 0x50]
call fcn.0048e90d
add esp, 4
lea ecx, [esp + 0x120]
push 0
call fcn.004da210
mov edi, 2
mov ebx, dword [esp + 0xc]
jmp 0x41e1cb
mov eax, esi
jmp 0x41e22f
lea ecx, [esp + 0x94]
call fcn.004d0930
int3