Function at 0x10041fe0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xc0
mov esi, esp
mov dword [esi + 0xa8], ebp
mov edi, dword [ebp + 0x14]
lea ecx, [esi + 0xb0]
mov dword [ecx - 4], esp
xor eax, eax
dec eax
mov dword [ecx + 8], eax
mov dword [ecx + 4], 0x10056230
mov edx, dword fs:[0]
mov dword [ecx], edx
mov ebx, dword [ebp + 0x10]
mov dword fs:[0], ecx
mov dword [esi + 0x30], edi
mov ecx, edi
sub ecx, ebx
sar ecx, 2
imul ecx, ecx, 0xaaaaaaab
mov dword [esi + 0xa0], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x90], xmm0
movdqa xmmword [esi + 0x80], xmm0
movdqa xmmword [esi + 0x70], xmm0
movdqa xmmword [esi + 0x60], xmm0
movdqa xmmword [esi + 0x50], xmm0
movdqa xmmword [esi + 0x40], xmm0
mov dword [esi + 0x24], 0
cmp ecx, 0x65
mov dword [esi + 0xc], ecx
jb 0x10042090
push ecx
call fcn.1006d800
add esp, 4
mov dword [esi + 0x20], eax
test eax, eax
jne 0x10042098
xor eax, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0xb8], eax
call fcn.100569dc
lea eax, [esi + 0x40]
mov dword [esi + 0x20], eax
xor eax, eax
mov dword [esi + 0x10], eax
cmp ebx, dword [ebp + 0x14]
je 0x100420d9
mov dword [esi + 0x24], 0
mov edi, ebx
mov ebx, dword [esi + 0x20]
cmp byte [edi + 0xb], 0
js 0x100420bb
mov ecx, edi
call fcn.10011dc0
jmp 0x100420be
mov eax, dword [edi + 4]
test eax, eax
je 0x100420c7
mov byte [ebx], 1
jmp 0x100420d0
mov byte [ebx], 2
dec dword [esi + 0xc]
inc dword [esi + 0x24]
add edi, 0xc
inc ebx
cmp edi, dword [ebp + 0x14]
jne 0x100420ac
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x28], eax
mov dword [esi + 0xb8], 0
xor ecx, ecx
mov ebx, dword [esi + 0xc]
mov dword [esi + 0x38], ecx
mov dword [esi + 0xc], ebx
mov eax, dword [esi + 0x10]
mov dword [esi + 0x14], eax
mov dword [esi + 0xb8], 0
mov ecx, dword [ebp + 8]
call fcn.1005614a
mov ebx, dword [esi + 0xc]
mov byte [esi + 0x1c], al
mov edx, dword [esi + 0x28]
test edx, edx
je 0x10042126
mov eax, dword [edx + 0xc]
cmp eax, dword [edx + 0x10]
je 0x1004212c
movzx eax, word [eax]
jmp 0x1004215f
mov al, 1
xor edx, edx
jmp 0x1004216e
mov eax, dword [edx]
mov ebx, edx
mov edi, dword [eax + 0x20]
mov dword [esi + 0xb8], 0xffffffff
mov ecx, edi
call dword [section..00cfg]
mov eax, dword [esi + 0x10]
mov dword [esi + 0x14], eax
mov dword [esi + 0xb8], 0
mov ecx, ebx
call edi
mov ebx, dword [esi + 0xc]
mov edx, dword [esi + 0x28]
cmp ax, 0xffff
sete al
mov ecx, 0
cmove edx, ecx
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x28], edx
cmp byte [esi + 0x1c], al
je 0x10042378
test ebx, ebx
je 0x10042378
mov eax, dword [ebp + 8]
mov edi, dword [eax]
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x10]
je 0x1004219b
movzx eax, word [eax]
mov word [esi + 0x1a], ax
jmp 0x100421cd
mov eax, dword [edi]
mov ebx, dword [eax + 0x20]
mov dword [esi + 0xb8], 0xffffffff
mov ecx, ebx
call dword [section..00cfg]
mov eax, dword [esi + 0x10]
mov dword [esi + 0x14], eax
mov dword [esi + 0xb8], 0
mov ecx, edi
call ebx
mov ebx, dword [esi + 0xc]
mov word [esi + 0x1a], ax
cmp byte [ebp + 0x20], 0
jne 0x1004220d
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebx]
mov edi, dword [eax + 0x1c]
mov dword [esi + 0xb8], 0xffffffff
mov ecx, edi
call dword [section..00cfg]
mov eax, dword [esi + 0x10]
mov dword [esi + 0x14], eax
mov dword [esi + 0xb8], 0
movzx eax, word [esi + 0x1a]
mov ecx, ebx
push eax
call edi
mov ebx, dword [esi + 0xc]
mov word [esi + 0x1a], ax
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi + 0x38]
inc ecx
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x34], 0
mov edi, dword [esi + 0x20]
mov dword [esi + 0x1c], eax
cmp eax, dword [ebp + 0x14]
je 0x100422ca
cmp byte [edi], 1
jne 0x100422be
mov dword [esi + 0x3c], edi
mov ecx, dword [esi + 0x1c]
push dword [esi + 0x38]
call fcn.1004e8c0
movzx edi, word [eax]
cmp byte [ebp + 0x20], 0
jne 0x10042288
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov dword [esi + 0xc], ebx
mov ebx, dword [eax + 0x1c]
mov dword [esi + 0xb8], 0xffffffff
mov ecx, ebx
call dword [section..00cfg]
mov eax, dword [esi + 0x10]
mov dword [esi + 0x14], eax
mov dword [esi + 0xb8], 0
movzx eax, di
mov ecx, dword [ebp + 0x18]
push eax
call ebx
mov ebx, dword [esi + 0xc]
mov edi, eax
cmp word [esi + 0x1a], di
jne 0x100422a1
mov ecx, dword [esi + 0x1c]
cmp byte [ecx + 0xb], 0
mov edi, dword [esi + 0x3c]
js 0x100422aa
call fcn.10011dc0
jmp 0x100422ad
mov edi, dword [esi + 0x3c]
mov byte [edi], 0
dec ebx
jmp 0x100422be
mov eax, dword [ecx + 4]
mov cl, 1
mov dword [esi + 0x34], ecx
cmp eax, dword [esi + 0x2c]
jne 0x100422be
mov byte [edi], 2
dec ebx
inc dword [esi + 0x24]
mov eax, dword [esi + 0x1c]
add eax, 0xc
inc edi
jmp 0x10042221
mov ecx, dword [esi + 0x2c]
test byte [esi + 0x34], 1
je 0x100420ee
mov eax, dword [ebp + 8]
mov edi, dword [eax]
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x10]
je 0x100422ec
add eax, 2
mov dword [edi + 0xc], eax
jmp 0x1004231d
mov eax, dword [edi]
mov dword [esi + 0xc], ebx
mov ebx, dword [eax + 0x24]
mov dword [esi + 0xb8], 0xffffffff
mov ecx, ebx
call dword [section..00cfg]
mov eax, dword [esi + 0x10]
mov dword [esi + 0x14], eax
mov dword [esi + 0xb8], 0
mov ecx, edi
call ebx
mov ebx, dword [esi + 0xc]
mov eax, dword [esi + 0x24]
add eax, ebx
mov edx, dword [esi + 0x2c]
mov ecx, edx
cmp eax, 2
mov edi, dword [ebp + 0x10]
jb 0x100420ee
mov ecx, edx
cmp edi, dword [ebp + 0x14]
je 0x100420ee
mov dword [esi + 0xc], ebx
mov ebx, dword [esi + 0x20]
cmp byte [ebx], 2
jne 0x10042368
cmp byte [edi + 0xb], 0
js 0x10042358
mov ecx, edi
call fcn.10011dc0
jmp 0x1004235b
mov eax, dword [edi + 4]
mov edx, dword [esi + 0x2c]
cmp eax, edx
je 0x10042368
mov byte [ebx], 0
dec dword [esi + 0x24]
add edi, 0xc
inc ebx
cmp edi, dword [ebp + 0x14]
jne 0x10042344
mov ecx, edx
jmp 0x100420eb
mov dword [esi + 0x14], ecx
mov ecx, dword [ebp + 8]
call fcn.1005614a
mov ecx, eax
mov ebx, dword [esi + 0x28]
test ebx, ebx
je 0x10042399
mov eax, dword [ebx + 0xc]
cmp eax, dword [ebx + 0x10]
je 0x100423a8
movzx eax, word [eax]
jmp 0x100423d9
test cl, cl
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi + 0x10]
mov edi, dword [ebp + 0x1c]
jne 0x100423ed
jmp 0x100423f0
mov eax, dword [ebx]
mov edi, dword [eax + 0x20]
mov dword [esi + 0xb8], 0xffffffff
mov byte [esi + 0x1c], cl
mov ecx, edi
call dword [section..00cfg]
mov eax, dword [esi + 0x10]
mov dword [esi + 0x14], eax
mov dword [esi + 0xb8], 0
mov ecx, ebx
call edi
mov cl, byte [esi + 0x1c]
cmp ax, 0xffff
sete al
xor cl, al
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi + 0x10]
mov edi, dword [ebp + 0x1c]
jne 0x100423f0
or byte [edi], 2
cmp eax, dword [ebp + 0x14]
mov edx, dword [esi + 0x20]
je 0x10042406
cmp byte [edx], 2
je 0x1004240b
add eax, 0xc
inc edx
cmp eax, dword [ebp + 0x14]
jne 0x100423f8
or byte [edi], 4
jmp 0x1004240e
mov dword [esi + 0x30], eax
test ecx, ecx
je 0x1004241b
push ecx
call fcn.1006d850
add esp, 4
mov eax, dword [esi + 0xb0]
mov dword fs:[0], eax
mov eax, dword [esi + 0x30]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret