Function at 0x41fa40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4476df
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
push ebx
push esi
push edi
mov eax, dword [0x458008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0x38]
lea edi, [esi + 0x30]
mov dword [esi], eax
mov eax, dword [ebp + 0x3c]
push 0x41f070
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x40]
push 0x4144c0
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x44]
push 2
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x18]
push 4
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x1c]
push edi
mov dword [esi + 0x14], eax
call fcn.0044164b
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 0x14]
mov dword [esi + 0x38], eax
lea eax, [esi + 0x3c]
mov dword [eax], ebx
mov dword [ebp - 0x14], eax
mov dword [esi + 0x40], 0
mov eax, dword [ebp + 8]
mov ecx, 2
mov byte [ebp - 4], 1
mov dword [esi + 0x44], eax
mov al, byte [ebp + 0xc]
mov byte [esi + 0x48], al
mov al, byte [ebp + 0x34]
mov byte [esi + 0x49], al
mov eax, dword [ebp + 0x20]
cmp eax, ecx
cmovg eax, ecx
xor esi, esi
mov dword [ebp + 0x20], eax
test eax, eax
jle 0x41fb91
mov eax, dword [ebp - 0x10]
mov ecx, 0xffffffd0
sub ecx, eax
mov dword [ebp + 0x1c], ecx
lea edx, [eax + 0x18]
add eax, 0x4a
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x24]
mov ebx, dword [ebp + 0x10]
mov eax, dword [eax + esi*4]
mov dword [edi - 8], eax
mov eax, dword [ebp + 0x28]
mov al, byte [esi + eax]
mov byte [ebx + esi], al
mov eax, dword [ebp + 0x28]
mov ebx, dword [ebp + 0x14]
cmp byte [esi + eax], 8
jne 0x41fb64
mov eax, dword [ecx + edi]
mov dword [ebp + 8], eax
mov dword [ecx + edi], 0
test eax, eax
je 0x41fb48
cmp eax, dword [edi]
je 0x41fb87
mov ecx, dword [edi]
mov dword [edi], 0
test ecx, ecx
je 0x41fb60
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [edi], eax
jmp 0x41fb73
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx + esi*8]
mov dword [edx], eax
mov eax, dword [ecx + esi*8 + 4]
mov dword [edx + 4], eax
inc esi
add edx, 8
add edi, 4
mov dword [ebp + 0xc], edx
cmp esi, dword [ebp + 0x20]
jge 0x41fb8c
mov ecx, dword [ebp + 0x1c]
jmp 0x41fb12
call fcn.0042de53
cmp esi, 2
jge 0x41fbf4
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x30]
lea ebx, [eax + 0x18]
lea edx, [eax + 0x4a]
lea edi, [edi + esi*4]
mov dword [ebp + 0x10], edx
lea ebx, [ebx + esi*8]
jmp 0x41fbb0
mov dword [edi - 8], 0
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov ecx, dword [edi]
mov dword [edi], 0
test ecx, ecx
je 0x41fbd9
mov eax, dword [ecx]
push 1
call dword [eax]
mov edx, dword [ebp + 0x10]
mov dword [edi], 0
add ebx, 8
mov byte [edx + esi], 2
add edi, 4
inc esi
cmp esi, 2
jl 0x41fbb0
mov ebx, dword [ebp + 0x14]
jmp 0x41fbf7
mov edx, dword [ebp + 0x10]
and byte [ebp + 0x34], 1
mov esi, 0
je 0x41fc60
test ebx, ebx
je 0x41fc1e
lea ecx, [ebx + 1]
lea esp, [esp]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x41fc10
sub ebx, ecx
lea esi, [ebx + 1]
jmp 0x41fc20
xor esi, esi
mov eax, dword [ebp + 0x20]
test eax, eax
jle 0x41fcb4
mov edi, dword [ebp - 0x10]
mov ebx, eax
add edi, 0x28
mov ecx, dword [edi]
test ecx, ecx
je 0x41fc4d
lea eax, [ecx + 1]
mov dword [ebp + 0xc], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41fc40
sub ecx, dword [ebp + 0xc]
inc ecx
jmp 0x41fc4f
xor ecx, ecx
add esi, ecx
cmp byte [edx], 6
jne 0x41fc59
mov byte [edx], 7
add edi, 4
inc edx
dec ebx
jne 0x41fc33
mov eax, dword [ebp + 0x20]
test eax, eax
jle 0x41fcb4
mov edi, dword [ebp - 0x10]
lea ebx, [ebp + 0xc]
mov edx, dword [ebp + 0x10]
add edi, 0x18
mov ecx, eax
mov dword [ebp + 0x14], eax
mov al, byte [edx]
cmp al, 8
je 0x41fca9
cmp al, 7
sete al
mov byte [ebx], al
test al, al
je 0x41fca9
mov ecx, dword [edi]
test ecx, ecx
je 0x41fca2
lea eax, [ecx + 1]
mov dword [ebp + 0x28], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41fc95
sub ecx, dword [ebp + 0x28]
inc ecx
jmp 0x41fca4
xor ecx, ecx
add esi, ecx
mov ecx, dword [ebp + 0x14]
add edi, 8
inc edx
inc ebx
dec ecx
mov dword [ebp + 0x14], ecx
jne 0x41fc78
test esi, esi
je 0x41fef3
push 0x20
call fcn.0042646d
mov edi, eax
add esp, 4
test edi, edi
je 0x41fced
mov dword [edi + 4], 0
mov dword [edi], vtable.base::RefCountedString.0
mov dword [edi + 0x1c], 0xf
mov dword [edi + 0x18], 0
mov byte [edi + 8], 0
jmp 0x41fcef
xor edi, edi
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test edi, edi
je 0x41fd01
push 1
lea eax, [edi + 4]
push eax
call ebx
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x40]
mov dword [ecx + 0x40], edi
test eax, eax
je 0x41fd30
lea edi, [eax + 4]
push 0xffffffffffffffff
push edi
call ebx
dec eax
setne al
test al, al
jne 0x41fd30
test edi, edi
je 0x41fd30
lea ecx, [edi - 4]
test ecx, ecx
je 0x41fd30
mov eax, dword [ecx]
push 1
call dword [eax + 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x40]
add ecx, 8
mov edx, dword [ecx + 0x10]
cmp esi, edx
ja 0x41fd51
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], esi
jb 0x41fd4b
mov ecx, dword [ecx]
mov byte [ecx + esi], 0
jmp 0x41fd5d
mov eax, esi
push 0
sub eax, edx
push eax
call fcn.0040ae90
mov ecx, dword [ebp - 0x10]
mov edi, dword [ecx + 0x40]
add edi, 8
cmp dword [edi + 0x10], 0
jne 0x41fd70
xor edi, edi
jmp 0x41fd78
cmp dword [edi + 0x14], 0x10
jb 0x41fd78
mov edi, dword [edi]
mov al, byte [ebp + 0x34]
lea ebx, [edi + esi]
mov dword [ebp + 0x14], edi
mov dword [ebp + 0x28], ebx
test al, al
je 0x41fdbe
mov edx, dword [ebp - 0x14]
lea ecx, [ebp + 0x14]
push ebx
call fcn.0041f9a0
mov edi, dword [ebp + 0x20]
add esp, 4
test edi, edi
jle 0x41fdb8
mov esi, dword [ebp - 0x10]
add esi, 0x28
push ebx
mov edx, esi
lea ecx, [ebp + 0x14]
call fcn.0041f9a0
add esp, 4
add esi, 4
dec edi
jne 0x41fda4
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x20]
xor esi, esi
test eax, eax
jle 0x41fdfc
lea edi, [ecx + 0x18]
mov ecx, dword [ebp + 0x10]
lea ecx, [ecx]
cmp byte [ecx + esi], 8
je 0x41fdf1
cmp byte [ebp + esi + 0xc], 0
je 0x41fdf1
push ebx
mov edx, edi
lea ecx, [ebp + 0x14]
call fcn.0041f9a0
mov eax, dword [ebp + 0x20]
add esp, 4
mov ecx, dword [ebp + 0x10]
inc esi
add edi, 8
cmp esi, eax
jl 0x41fdd0
mov edi, dword [ebp + 0x14]
cmp dword [0x45b934], 1
jne 0x41fef3
cmp dword [0x45b940], 3
jg 0x41fef3
cmp ebx, edi
je 0x41fef3
push ecx
lea edx, [ebp + 0x14]
lea ecx, [ebp + 0x28]
call fcn.00424c40
mov esi, eax
add esp, 4
test esi, esi
je 0x41fef3
sub esp, 8
mov dword [ebp - 0xc8], 3
lea ecx, [ebp - 0xc0]
call fcn.00409220
mov dword [ebp - 0x24], str.debug_trace_event_impl.cc
mov dword [ebp - 0x20], 0x198
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
push 0x198
push str.debug_trace_event_impl.cc
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 3
call fcn.0040cd70
mov edx, str.Check_failed:
lea ecx, [ebp - 0xc0]
call fcn.00406de0
mov edx, esi
mov ecx, eax
call fcn.0040d360
cmp dword [esi + 0x14], 0x10
jb 0x41fea8
push dword [esi]
call fcn.00426468
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push esi
mov byte [esi], 0
call fcn.00426468
add esp, 4
sub edi, ebx
mov byte [ebp - 4], 4
push edi
push ecx
mov edx, str.Overrun_by
lea ecx, [ebp - 0xc0]
call fcn.00406de0
add esp, 4
mov ecx, eax
call fcn.0040b380
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 1
call fcn.0040ca70
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40