Function at 0x41c150
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x459f51
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
mov eax, dword [0x4a1e24]
push ebx
push ebp
push esi
push edi
mov ecx, 0x4a1e24
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x10], edi
mov edx, dword [0x4a1e24]
xor ebp, ebp
mov ecx, 0x4a1e24
mov dword [esp + 0x23c], ebp
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [0x4a1e24]
mov ecx, 0x4a1e24
mov byte [esp + 0x23c], 1
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x244]
mov eax, dword [ebx + 4]
cmp ebp, eax
mov byte [esp + 0x23c], 2
mov dword [esp + 0x30], ebp
mov dword [esp + 0x20], 0xffffffff
jae 0x41c283
mov ecx, dword [ebx]
lea eax, [ecx + ebp*4]
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x41c244
mov edx, dword [esi + 0xc]
test edx, edx
lea edi, [esi + 0xc]
jl 0x41c232
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x41c232
push eax
call fcn.00409df0
mov dword [esp + 0x28], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x41c225
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov edi, dword [esp + 0x24]
add edi, 0x10
mov dword [esp + 0x10], edi
jmp 0x41c244
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00402df0
mov edi, dword [esp + 0x10]
push 9
push 0x45e380
push edi
call fcn.0044cfd0
add esp, 0xc
test eax, eax
je 0x41c262
mov eax, dword [ebx + 4]
inc ebp
cmp ebp, eax
jb 0x41c1e3
jmp 0x41c283
mov eax, dword [0x4a1584]
push 0x34
push 0x45e378
push 0x45e348
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
je 0x41ca6e
mov eax, dword [ebx + 4]
test eax, eax
mov dword [esp + 0x14], 0
jbe 0x41c3a6
cmp dword [esp + 0x14], eax
jae 0x41c3b4
mov eax, dword [esp + 0x244]
mov ecx, dword [eax]
mov edx, dword [esp + 0x14]
lea eax, [ecx + edx*4]
mov eax, dword [eax]
lea esi, [eax - 0x10]
lea ebx, [edi - 0x10]
cmp esi, ebx
je 0x41c353
mov ecx, dword [ebx + 0xc]
test ecx, ecx
jl 0x41c341
mov ecx, dword [esi]
cmp ecx, dword [ebx]
jne 0x41c341
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x41c2ed
cmp eax, dword [esi]
jne 0x41c2ed
mov ebp, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x41c321
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
mov ebp, eax
test ebp, ebp
je 0x41c418
mov edx, dword [esi + 4]
mov dword [ebp + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov eax, ecx
shr ecx, 2
add esi, 0x10
lea edi, [ebp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41c338
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
lea edi, [ebp + 0x10]
mov dword [esp + 0x10], edi
jmp 0x41c353
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00402df0
mov edi, dword [esp + 0x10]
push 9
push 0x45e33c
push edi
call fcn.0044cfd0
add esp, 0xc
test eax, eax
je 0x41c384
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x244]
mov eax, dword [eax + 4]
inc ecx
cmp ecx, eax
mov dword [esp + 0x14], ecx
jb 0x41c296
jmp 0x41c3a6
mov ecx, dword [0x4a1584]
push 0x34
push 0x45e378
push 0x45e30c
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
je 0x41c4ee
mov ebx, dword [esp + 0x244]
mov eax, dword [ebx + 4]
test eax, eax
ja 0x41c3be
push 0x80070057
call fcn.004027c0
mov eax, dword [ebx]
mov eax, dword [eax]
lea esi, [eax - 0x10]
lea ebp, [edi - 0x10]
cmp esi, ebp
je 0x41c475
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jl 0x41c463
mov ecx, dword [esi]
cmp ecx, dword [ebp]
jne 0x41c463
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x41c406
cmp eax, dword [esi]
jne 0x41c406
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x41c43b
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
mov ebx, eax
test ebx, ebx
jne 0x41c41d
jmp fcn.00402840
mov edx, dword [esi + 4]
mov dword [ebx + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov eax, ecx
shr ecx, 2
add esi, 0x10
lea edi, [ebx + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
lea eax, [ebp + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41c453
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
lea edi, [ebx + 0x10]
mov ebx, dword [esp + 0x244]
mov dword [esp + 0x10], edi
jmp 0x41c475
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00402df0
mov edi, dword [esp + 0x10]
push 9
push 0x45e300
push edi
call fcn.0044cfd0
add esp, 0xc
test eax, eax
jne 0x41c50f
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x30]
push eax
push 0x45e2e8
push edi
call fcn.0044d009
mov ecx, dword [0x4a14f0]
mov eax, dword [esp + 0x3c]
add esp, 0x18
cmp ecx, eax
jne 0x41c4d5
mov edx, dword [esp + 0x2c]
cmp edx, dword [0x4a1498]
jne 0x41c4d5
mov eax, dword [esp + 0x28]
cmp eax, dword [0x4a1494]
je 0x41c523
mov ecx, dword [0x4a1584]
push 0
push 0x45e2d8
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x23c], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x41ca8a
push 8
push 0x45e2cc
push edi
call fcn.0044cfd0
add esp, 0xc
test eax, eax
jne 0x41c59e
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x23c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c549
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x23c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c56f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add edi, 0xfffffff0
mov dword [esp + 0x23c], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41c594
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov eax, 1
jmp 0x41cae2
mov eax, dword [ebx + 4]
test eax, eax
mov dword [esp + 0x14], 0
jbe 0x41ca56
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jae 0x41c3b4
mov eax, dword [esp + 0x244]
mov eax, dword [eax]
shl ecx, 2
add eax, ecx
mov eax, dword [eax]
lea esi, [eax - 0x10]
lea ebx, [edi - 0x10]
cmp esi, ebx
je 0x41c66e
mov ecx, dword [ebx + 0xc]
test ecx, ecx
jl 0x41c65c
mov ecx, dword [esi]
cmp ecx, dword [ebx]
jne 0x41c65c
mov edx, dword [ecx]
call dword [edx + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x41c608
cmp eax, dword [esi]
jne 0x41c608
mov ebp, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x41c63c
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
mov ebp, eax
test ebp, ebp
je 0x41c418
mov edx, dword [esi + 4]
mov dword [ebp + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov eax, ecx
shr ecx, 2
add esi, 0x10
lea edi, [ebp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41c653
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
lea edi, [ebp + 0x10]
mov dword [esp + 0x10], edi
jmp 0x41c66e
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00402df0
mov edi, dword [esp + 0x10]
push 5
push 0x45e2c4
push edi
call fcn.0044cfd0
add esp, 0xc
test eax, eax
jne 0x41c800
lea eax, [esp + 0x3c]
push eax
push 0x45e2bc
push edi
call fcn.0044d009
mov ecx, dword [esp + 0x48]
mov eax, dword [0x4a14f0]
add esp, 0xc
cmp ecx, eax
jne 0x41c79b
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x244]
mov esi, dword [ecx + 4]
lea edx, [eax + 1]
cmp edx, esi
mov dword [esp + 0x30], 1
jae 0x41c3b4
mov ecx, dword [ecx]
shl eax, 2
lea eax, [ecx + eax + 4]
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x41c72a
mov edx, dword [esi + 0xc]
test edx, edx
lea ebx, [esi + 0xc]
jl 0x41c718
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x41c718
push eax
call fcn.00409df0
mov edi, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x41c70f
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
add edi, 0x10
mov dword [esp + 0x10], edi
jmp 0x41c72a
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00402df0
mov edi, dword [esp + 0x10]
mov ecx, dword [edi - 0xc]
test ecx, ecx
jl 0x41c3b4
cmp byte [edi], 0x3b
jne 0x41c8b4
mov esi, dword [esp + 0x18]
lea eax, [edi - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x41c8b4
mov edx, dword [esi + 0xc]
test edx, edx
lea ebx, [esi + 0xc]
jl 0x41c78b
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x41c78b
push eax
call fcn.00409df0
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x41c77f
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
add ebp, 0x10
mov dword [esp + 0x18], ebp
jmp 0x41c8b4
push ecx
push edi
lea ecx, [esp + 0x20]
call fcn.00402df0
jmp 0x41c8b4
cmp dword [esp + 0x30], 1
jne 0x41c7f3
mov ebp, dword [esp + 0x20]
cmp ebp, 0xffffffff
je 0x41c7f3
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
push esi
push eax
push ecx
push ebp
lea edx, [esp + 0x2c]
push 0x45e240
push edx
call fcn.00412d20
mov ebx, dword [esp + 0x34]
mov eax, dword [0x4a1584]
add esp, 0x18
push 0x24
push 0
push ebx
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
je 0x41c989
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x30], 0
jmp 0x41c8b4
cmp dword [esp + 0x30], 1
jne 0x41c8b4
push 5
push 0x45e238
push edi
call fcn.0044cfd0
add esp, 0xc
test eax, eax
jne 0x41c8b4
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x3c]
push edx
push 0x45e22c
push edi
call fcn.0044d009
mov eax, dword [esp + 0x30]
mov ebp, dword [0x4a1494]
mov esi, dword [esp + 0x44]
mov ecx, dword [0x4a1498]
mov edx, dword [esp + 0x48]
add esp, 0x10
cmp eax, 0xffffffff
jne 0x41c87e
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov eax, edx
sub eax, ecx
mov ecx, esi
sub ecx, ebp
test eax, eax
jge 0x41c86f
not eax
inc eax
test ecx, ecx
jge 0x41c876
not ecx
inc ecx
cmp eax, ecx
jge 0x41c8a8
mov eax, ecx
jmp 0x41c8a8
mov eax, edx
sub eax, ecx
mov ecx, esi
sub ecx, ebp
test eax, eax
jge 0x41c88d
not eax
inc eax
test ecx, ecx
jge 0x41c894
not ecx
inc ecx
cmp eax, ecx
jge 0x41c89a
mov eax, ecx
cmp eax, dword [esp + 0x24]
jge 0x41c8b4
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], esi
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x244]
mov eax, dword [edx + 4]
inc ecx
cmp ecx, eax
mov dword [esp + 0x14], ecx
jb 0x41c5b1
mov ebx, dword [esp + 0x20]
or ebp, 0xffffffff
cmp ebx, ebp
je 0x41ca56
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
push esi
push eax
push ecx
push ebx
lea edx, [esp + 0x20]
push 0x45e1ec
push edx
call fcn.00412d20
mov edi, dword [esp + 0x28]
mov eax, dword [0x4a1584]
add esp, 0x18
push 0x24
push 0
push edi
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
lea eax, [esi - 0x10]
mov edx, ebp
mov byte [esp + 0x23c], 1
lea ecx, [eax + 0xc]
jne 0x41c9f9
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c93f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x23c], 0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c964
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov dword [esp + 0x23c], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x41c982
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, ebx
jmp 0x41cae2
lea eax, [esi - 0x10]
mov byte [esp + 0x23c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c9ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
mov byte [esp + 0x23c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c9cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add edi, 0xfffffff0
mov dword [esp + 0x23c], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41c9f2
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov eax, ebp
jmp 0x41cae2
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ca0a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x23c], 0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ca2f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov dword [esp + 0x23c], ebp
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ca4f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, ebp
jmp 0x41cae2
mov eax, dword [0x4a1584]
push 0x10
push 0x45e1e0
push 0x45e1c0
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x23c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ca94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x23c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41caba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add edi, 0xfffffff0
mov dword [esp + 0x23c], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41cadf
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
or eax, 0xffffffff
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret