Function at 0x419210
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x606a66
mov eax, dword fs:[0]
push eax
sub esp, 0x230
push ebx
push esi
push edi
mov eax, dword [0x7664f8]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
lea ecx, [esp + 0x18]
call fcn.00424100
xor ebx, ebx
lea ecx, [esp + 0x44]
mov dword [esp + 0x248], ebx
call fcn.004120c0
mov esi, dword [ebp + 8]
mov byte [esp + 0x248], 1
mov eax, dword [0x7ec268]
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x30], eax
mov eax, ecx
sub eax, dword [0x7ec264]
lea edx, [esi + 0x28]
add eax, dword [edx]
mov dword [esp + 0x34], edx
cdq
idiv ecx
mov eax, dword [esi]
add eax, 0x188
mov dword [esp + 0x30], ebx
mov dword [esi + 0x34], edx
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
test ecx, 0xfffffffc
jg 0x419307
lea ecx, [esp + 0x44]
mov byte [esp + 0x248], 0
call fcn.004121a0
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4192c5
push eax
call fcn.0055c72e
add esp, 4
mov eax, dword [esp + 0x18]
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.0055c72e
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp + 8]
mov ebx, dword [esp + 0x30]
mov edi, dword [esi]
mov edx, dword [edi + 0x198]
sub edx, dword [edi + 0x194]
sar edx, 2
cmp ebx, edx
jb 0x419325
or edi, 0xffffffff
mov dword [esp + 0x14], edi
jmp 0x41934c
mov eax, dword [edi + 0x198]
sub eax, dword [edi + 0x194]
sar eax, 2
cmp ebx, eax
jb 0x41933d
call fcn.0055cb74
mov ecx, dword [edi + 0x194]
mov edx, dword [ecx + ebx*4]
mov dword [esp + 0x14], edx
mov edi, edx
mov eax, edi
and eax, 0xffff0000
mov dword [esp + 0x38], eax
cmp eax, 0x10000000
je 0x4196f3
test eax, 0x20000
je 0x419447
mov edx, dword [esi]
mov eax, edi
sar eax, 8
and eax, 0xf
jl 0x419383
cmp eax, dword [edx + 0x44]
jge 0x419383
lea eax, [edx + eax*4]
jmp 0x419385
xor eax, eax
mov edi, dword [eax]
mov ecx, dword [edx + 0xc0]
mov esi, edi
sar esi, 4
xor ebx, ebx
and esi, 0x3f
xor eax, eax
cmp ecx, ebx
jle 0x4196c2
add edx, 0x5c
test dword [edx], 0xf0000
jne 0x4193b9
inc eax
add edx, 0x18
cmp eax, ecx
jl 0x4193a4
jmp 0x4196c2
and edi, 0x300
cmp edi, 0x300
jge 0x41974a
mov edi, dword [ebp + 8]
lea ebx, [esi - 1]
mov edx, edi
call fcn.00419120
lea ebx, [esi + 1]
mov edx, edi
mov dword [esp + 0x10], eax
call fcn.00419120
mov ecx, dword [esp + 0x10]
add ecx, eax
jne 0x4196c2
cmp dword [edi + 0x2c], 2
jg 0x419411
cmp dword [edi + 0x38], 1
jne 0x419411
mov ecx, dword [edi]
cmp byte [ecx + 0x1d4], 0
jne 0x419411
push 1
push edi
call fcn.0041a620
lea ecx, [esp + 0x44]
mov byte [esp + 0x248], 0
call fcn.004121a0
lea ecx, [esp + 0x18]
call fcn.00536a00
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test eax, 0x10000
je 0x419527
mov esi, dword [esi]
mov eax, edi
sar eax, 8
and eax, 0xf
jl 0x419468
cmp eax, dword [esi + 0x44]
jge 0x419468
lea eax, [esi + eax*4]
jmp 0x41946a
xor eax, eax
mov edi, dword [eax]
mov edx, dword [ebp + 8]
mov esi, edi
sar esi, 4
mov ebx, esi
and ebx, 0x3f
mov dword [esp + 0x10], ebx
call fcn.00419120
cmp eax, 3
jge 0x4196c2
and edi, 0x300
and esi, 0xf
cmp edi, 0x300
jge 0x4194d2
cmp esi, 8
mov edi, 0x30
jge 0x4194b8
mov edx, dword [ebp + 8]
inc ebx
call fcn.00419120
test eax, eax
je 0x4194b8
mov edi, 0x20
test esi, esi
jle 0x41951b
mov ebx, dword [esp + 0x10]
mov edx, dword [ebp + 8]
dec ebx
call fcn.00419120
test eax, eax
je 0x41951b
and edi, 0x20
jmp 0x41951b
cmp esi, 4
mov ebx, dword [ebp + 8]
jge 0x4194f2
cmp dword [ebx + 0x30], esi
je 0x4194e8
cmp dword [ebx + 0x34], esi
je 0x4194f2
xor edi, edi
jmp 0x41951b
mov edi, 2
cmp dword [ebx + 0x34], esi
je 0x4194f7
mov edi, 4
mov eax, dword [esp + 0x10]
push eax
mov edx, ebx
call fcn.00419160
test eax, eax
je 0x41950c
mov edi, 1
mov edx, dword [ebx]
call fcn.004127b0
test al, al
je 0x419411
mov ecx, dword [ebp + 8]
test dword [ecx + 0x3c], edi
jne 0x419411
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
mov edx, dword [ecx + 0xc0]
xor eax, eax
test edx, edx
jle 0x419550
add ecx, 0x5c
jmp 0x419540
test dword [ecx], 0xf0000
jne 0x419564
inc eax
add ecx, 0x18
cmp eax, edx
jl 0x419540
mov eax, dword [esi + 0x2c]
lea edx, [eax + eax*2]
add edx, edx
cmp dword [0x7ec29c], edx
jge 0x4196c2
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ebx, ecx
cmp eax, ecx
jbe 0x41957f
call fcn.0055cb74
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
mov edi, eax
cmp eax, ecx
jbe 0x41958e
call fcn.0055cb74
mov eax, dword [esp + 0x18]
push ebx
push esi
push edi
push eax
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00424650
mov edx, dword [esp + 0x34]
push edx
lea ecx, [esp + 0x1c]
call fcn.004242e0
push 0x7ea140
lea esi, [esp + 0x1c]
call fcn.0041cfe0
test al, al
je 0x4196c2
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x24]
sar eax, 2
test eax, eax
ja 0x4195dc
call fcn.0055cb74
mov ecx, dword [esp + 0x24]
cmp dword [ecx], 0
jne 0x4196c2
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
lea edi, [esp + 0x48]
call fcn.00414b40
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
mov eax, dword [ecx + 0xc0]
cmp eax, 5
jge 0x4196c2
lea edx, [eax + 1]
lea eax, [eax + eax*2 + 9]
mov dword [ecx + 0xc0], edx
lea ecx, [ecx + eax*8]
test ecx, ecx
je 0x4196c2
mov esi, dword [esp + 0x14]
sar esi, 8
and esi, 0xff
xor eax, eax
mov dword [esp + 0x10], eax
test eax, eax
jne 0x419648
mov eax, dword [ecx + 0x10]
cmp eax, 4
jge 0x41967c
mov edx, dword [ebp + 0xc]
jmp 0x419676
mov edx, dword [edi]
mov eax, esi
and eax, 0xf
sar esi, 4
test eax, eax
jl 0x419660
cmp eax, dword [edx + 0x44]
jge 0x419660
lea eax, [edx + eax*4]
jmp 0x419662
xor eax, eax
mov edx, dword [eax]
mov ebx, edx
or ebx, 0x80000000
mov dword [eax], ebx
mov eax, dword [ecx + 0x10]
cmp eax, 4
jge 0x41967c
mov dword [ecx + eax*4], edx
inc dword [ecx + 0x10]
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 3
mov dword [esp + 0x10], eax
jl 0x419637
mov eax, dword [esp + 0x38]
mov dword [ecx + 0x14], eax
mov esi, dword [edi]
call fcn.00412730
call fcn.00418bc0
mov esi, dword [edi]
lea ecx, [esp + 0x18]
push ecx
call fcn.00416690
mov edi, dword [edi]
test al, al
jne 0x4197c3
lea edx, [esp + 0x44]
push edx
call fcn.00414b40
call fcn.00418bc0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [eax + 0x198]
sub edx, dword [eax + 0x194]
mov ecx, dword [esp + 0x30]
add eax, 0x188
inc ecx
sar edx, 2
cmp ecx, edx
mov dword [esp + 0x30], ecx
jl 0x419300
xor ebx, ebx
jmp 0x4192a3
lea ecx, [esp + 0x44]
mov byte [esp + 0x248], 0
call fcn.004121a0
mov eax, dword [esp + 0x24]
xor esi, esi
cmp eax, esi
je 0x419717
push eax
call fcn.0055c72e
add esp, 4
mov eax, dword [esp + 0x18]
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call fcn.0055c72e
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
cmp dword [eax + 0x2c], 2
jg 0x41976c
cmp dword [eax + 0x38], 1
jne 0x41976c
mov edx, dword [eax]
cmp byte [edx + 0x1d4], 0
jne 0x41976c
push 1
push eax
call fcn.0041a620
lea ecx, [esp + 0x44]
mov byte [esp + 0x248], 0
call fcn.004121a0
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x41978e
push eax
call fcn.0055c72e
add esp, 4
mov eax, dword [esp + 0x18]
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.0055c72e
mov eax, dword [esp + 0x18]
add esp, 4
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [esp + 0x44]
push ecx
call fcn.00414b40
call fcn.00418bc0
lea ecx, [esp + 0x44]
mov byte [esp + 0x248], 0
call fcn.004121a0
mov eax, dword [esp + 0x24]
xor esi, esi
cmp eax, esi
je 0x4197f6
push eax
call fcn.0055c72e
add esp, 4
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call fcn.0055c72e
mov eax, dword [esp + 0x18]
add esp, 4
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8