Function at 0x41d150
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 [0x521014]
xor eax, ebp
mov dword [esp + 0x138], eax
push 0xc
call fcn.0048b346
add esp, 4
mov ebx, eax
mov ecx, eax
push esi
call fcn.004d34f0
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x120]
movdqa xmmword [esi], xmm0
mov dword [esi + 0x10], 0xffffffff
mov ecx, esi
push 0
call fcn.004d6b00
mov ecx, esi
push dword [ebp + 0xc]
call fcn.004d71c0
test al, al
jne 0x41d1c7
mov eax, dword [edi + 0x70]
test eax, eax
je 0x41d1c7
lea ecx, [esp + 0x120]
push eax
call fcn.004d6eb0
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.0041ce90
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jne 0x41d257
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edi, [esp + 0x50]
push eax
push edi
call fcn.004b9e70
add esp, 8
lea esi, [esp + 0xb8]
mov ecx, esi
push edi
push 0x34c
push str.DownloadModule
push 1
call fcn.004b9c70
lea ecx, [esp + 0xf4]
push 0x50784d
push str.Setup_url_is_empty.
call fcn.004b5d50
mov ecx, esi
call fcn.004b9cb0
cmp byte [edi + 0xb], 0
jns 0x41d24d
push dword [esp + 0x50]
call fcn.0048b376
add esp, 4
mov edi, 2
jmp 0x41d870
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], ebx
lea esi, [esp + 0xb8]
mov ecx, esi
push 0x34f
push str.DownloadModule
push 0
call fcn.004b9b40
lea ecx, [esp + 0xf4]
push 0x507865
push str.Selected_download_urls:
call fcn.004b5d50
mov ecx, esi
call fcn.004379a0
mov edi, dword [esp + 0x114]
mov esi, dword [esp + 0x118]
cmp edi, esi
je 0x41d2ef
lea ebx, [esp + 0xb8]
mov ecx, ebx
push 0x351
push str.DownloadModule
push 0
call fcn.004b9b40
movzx eax, byte [edi + 0xb]
mov edx, edi
test al, al
jns 0x41d2d1
mov edx, dword [edi]
mov eax, dword [edi + 4]
add eax, edx
lea ecx, [esp + 0xf4]
push eax
push edx
call fcn.004b5d50
mov ecx, ebx
call fcn.004379a0
add edi, 0xc
cmp edi, esi
jne 0x41d2af
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x68]
mov dword [esp + 0xb0], 0x504d20
mov dword [esp + 0xb4], eax
mov ecx, esi
call fcn.0041d9b0
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 0x41d8fe
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 0x41d8fe
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 0x41d42f
mov edi, esi
test cl, cl
jns 0x41d3e6
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 0x41d466
xor ebx, ebx
cmp byte [esp + 0x10], 0
je 0x41d4b6
dec edx
mov eax, dword [esp + 8]
mov esi, dword [esp + 0x28]
cmp al, byte [edi + ebx]
jne 0x41d42f
cmp edx, ebx
je 0x41d498
mov al, byte [esp + ebx + 0xa1]
inc ebx
jmp 0x41d41c
lea eax, [esp + 0xa0]
cmp eax, esi
mov ebx, dword [esp + 0xc]
je 0x41d4db
cmp byte [esp + 0x10], 0
js 0x41d4c2
test cl, cl
js 0x41d4a2
mov eax, dword [esi + 8]
mov dword [esp + 0xa8], eax
movq xmm0, qword [esi]
movq qword [esp + 0xa0], xmm0
jmp 0x41d4db
test ebx, ebx
je 0x41d498
push ebx
push edi
push eax
call fcn.0048d57d
add esp, 0xc
test eax, eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
je 0x41d4f7
lea eax, [esp + 0xa0]
cmp eax, dword [esp + 0x28]
mov ebx, dword [esp + 0xc]
jne 0x41d4ca
jmp 0x41d4db
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
jmp 0x41d4bc
lea ecx, [esp + 0xa0]
push dword [esp + 0x30]
push dword [esi]
call fcn.0046cb90
jmp 0x41d4db
xor edx, edx
mov ecx, dword [esp + 8]
mov esi, dword [esp + 0x1c]
jmp 0x41d4f7
test cl, cl
jns 0x41d4c8
mov esi, dword [esi]
mov edi, esi
lea ecx, [esp + 0xa0]
push dword [esp + 0x2c]
push edi
call fcn.0046ca90
mov ecx, ebx
call fcn.004d3570
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 0x41d99d
mov dword [esp + 8], ecx
cmp ebx, 5
jae 0x41d552
mov byte [esp + 0x9f], bl
lea eax, [esp + 0x94]
test ebx, ebx
mov esi, dword [esp + 8]
jne 0x41d583
jmp 0x41d594
lea esi, [ebx + 8]
and esi, 0xfffffff8
lea eax, [esi + esi]
push eax
call fcn.0048b346
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 0x41d585
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.0041d100
test al, al
jne 0x41d618
cmp dword [esp + 0x50], 0
jne 0x41d797
mov esi, dword [ebx + 4]
mov edi, dword [esp + 0x74]
test al, al
je 0x41d689
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.0041b8b0
xor eax, eax
cmp dword [esp + 0x34], esi
seta al
mov ecx, ebx
mov ebx, dword [esp + 0xc]
push eax
call fcn.004d70f0
mov dword [esp + 8], 0
mov dword [esp + 0x24], 0
mov edi, dword [esp + 0x20]
jmp 0x41d704
lea eax, [edi + edi]
lea eax, [eax + eax*4]
mov ecx, 0x51eb851f
mul ecx
shr edx, 5
cmp esi, edx
jae 0x41d6a8
mov ecx, ebx
call fcn.004d3570
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.0041b8b0
mov al, 1
mov dword [esp + 8], eax
mov edi, dword [esp + 0x20]
cmp ebx, edi
jae 0x41d700
mov esi, dword [esp + 0x14]
mov ecx, esi
call fcn.0041db80
push eax
push dword [esi + 0xc8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [esp + 0xc]
cmp byte [esp + 0x6b], 0
jns 0x41d717
push dword [esp + 0x60]
call fcn.0048b376
add esp, 4
cmp byte [esp + 0x5f], 0
mov esi, dword [esp + 0x14]
jns 0x41d72e
push dword [esp + 0x54]
call fcn.0048b376
add esp, 4
cmp byte [esp + 0x83], 0
jns 0x41d744
push dword [esp + 0x78]
call fcn.0048b376
add esp, 4
cmp byte [esp + 0x93], 0
jns 0x41d75d
push dword [esp + 0x88]
call fcn.0048b376
add esp, 4
cmp byte [esp + 0x9f], 0
jns 0x41d776
push dword [esp + 0x94]
call fcn.0048b376
add esp, 4
cmp byte [esp + 8], 0
je 0x41d853
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, edi
jne 0x41d358
jmp 0x41d8fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea esi, [esp + 0x48]
push esi
call fcn.004b9e70
add esp, 8
lea ecx, [esp + 0xb8]
push esi
push 0x370
push str.DownloadModule
push 1
call fcn.004b9c70
lea eax, [esp + 0x50]
push eax
lea esi, [esp + 0x3c]
push esi
call fcn.004d67c0
add esp, 8
movzx eax, byte [esp + 0x43]
mov edx, esi
test al, al
jns 0x41d7e9
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
add eax, edx
lea ecx, [esp + 0xf4]
push eax
push edx
call fcn.004b5d50
cmp byte [esp + 0x43], 0
mov edi, dword [esp + 0x20]
jns 0x41d810
push dword [esp + 0x38]
call fcn.0048b376
add esp, 4
lea ecx, [esp + 0xb8]
call fcn.004b9cb0
cmp byte [esp + 0x4f], 0
jns 0x41d82f
push dword [esp + 0x44]
call fcn.0048b376
add esp, 4
lea eax, [esp + 0x50]
push eax
call fcn.004496a0
add esp, 4
movzx eax, al
or eax, 2
mov dword [esp + 0x24], eax
mov dword [esp + 8], 0
jmp 0x41d704
mov edi, dword [esp + 0x24]
cmp byte [esp + 0xab], 0
jns 0x41d870
push dword [esp + 0xa0]
call fcn.0048b376
add esp, 4
mov esi, dword [esp + 0x114]
test esi, esi
je 0x41d8cb
mov eax, dword [esp + 0x118]
cmp eax, esi
je 0x41d996
mov dword [esp + 0xc], ebx
mov ebx, edi
lea edi, [eax - 0xc]
cmp byte [eax - 1], 0
js 0x41d8a1
mov eax, edi
cmp edi, esi
jne 0x41d890
jmp 0x41d8ae
push dword [eax - 0xc]
call fcn.0048b376
add esp, 4
jmp 0x41d899
mov eax, dword [esp + 0x114]
mov edi, ebx
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x118], esi
push eax
call fcn.0048b376
add esp, 4
lea ecx, [esp + 0x120]
call fcn.004d6b30
test ebx, ebx
je 0x41d8e4
mov ecx, ebx
push 1
call fcn.004b6960
mov ecx, dword [esp + 0x138]
xor ecx, ebp
call fcn.0048b980
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.004b9e70
add esp, 8
lea ecx, [esp + 0xb8]
push ebx
push 0x389
push str.DownloadModule
push 1
call fcn.004b9c70
lea esi, [esp + 0xc0]
lea ecx, [esp + 0xf4]
push 0x507884
push str.Max_download_attempts_failed__
call fcn.004b5d50
mov ecx, esi
push edi
call fcn.004b6300
mov ecx, eax
push 0x507886
call fcn.004b6280
lea ecx, [esp + 0xb8]
call fcn.004b9cb0
cmp byte [ebx + 0xb], 0
jns 0x41d97a
push dword [esp + 0x50]
call fcn.0048b376
add esp, 4
lea ecx, [esp + 0x120]
push 0
call fcn.004d70f0
mov edi, 2
mov ebx, dword [esp + 0xc]
jmp 0x41d857
mov eax, esi
jmp 0x41d8bb
lea ecx, [esp + 0x94]
call fcn.004cb7c0
int3