Function at 0x401c20
Capabilities:
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x890
mov esi, esp
mov dword [esi + 0x878], ebp
mov dword [esi + 0x87c], esp
mov dword [esi + 0x888], 0xffffffff
mov dword [esi + 0x884], 0x577900
mov edi, dword [ebp + 8]
mov dword [esi + 0x20], ecx
mov dword [esi + 0xc], edx
mov eax, dword fs:[0]
mov dword [esi + 0x880], eax
lea eax, [esi + 0x880]
mov dword fs:[0], eax
lea eax, [edi + 0x8c]
mov ecx, dword [edi + 0x88]
movsd xmm0, qword [edx]
movsd xmm1, qword [edx + 8]
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], ecx
mov byte [esi + 0x5c], 0
movsd qword [esi + 0x30], xmm0
movsd qword [esi + 0x38], xmm1
mov dword [esi + 0x40], 0
mov eax, dword [edi + 0x90]
mov ecx, dword [eax + 0x84]
mov dword [esi + 8], ecx
mov eax, dword [eax + 0x80]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x90]
mov ecx, dword [eax + 0x84]
mov eax, dword [eax + 0x80]
mov edx, dword [edi + 0x98]
mov dword [esi + 0x14], ecx
sub ecx, eax
cmp ecx, edx
lea ecx, [edi + 0x90]
mov dword [esi + 0x18], ecx
jl 0x401d09
add edx, edx
mov byte [esi + 7], 1
mov dword [esi + 0x888], 0
call fcn.0057b900
mov edi, dword [ebp + 8]
mov edx, dword [edi + 0x98]
mov ebx, dword [esi + 0x14]
mov eax, dword [edi + 0x94]
dec edx
lea ecx, [esi + 0x30]
and edx, ebx
inc ebx
mov dword [eax + edx*8], 0x41c310
mov dword [eax + edx*8 + 4], ecx
mov eax, dword [edi + 0x90]
mov dword [eax + 0x84], ebx
mov eax, dword [esi + 0x10]
mov edi, dword [edi + 0x8c]
sub dword [esi + 8], eax
lea ecx, [edi + 0xf0]
nop word cs:[eax + eax]
nop dword [eax]
mov eax, dword [edi + 0xfc]
test eax, 0x10000
jne 0x401d78
lea edx, [eax + 0x10000]
lock cmpxchg dword [edi + 0xfc], edx
jne 0x401d50
mov eax, edx
and eax, 0xff
jne 0x401d83
jmp 0x401da8
mov edx, eax
mov eax, edx
and eax, 0xff
je 0x401da8
cmp dword [esi + 8], 0
jg 0x401d90
movzx edx, dh
cmp edx, eax
jne 0x401da8
mov edx, 1
mov byte [esi + 7], 1
mov dword [esi + 0x888], 0
call fcn.00581a50
mov edx, dword [esi + 0xc]
mov ecx, dword [edx + 0x14]
mov eax, dword [edx + 0x18]
mov edi, dword [edx + 0x1c]
movzx edx, byte [ebp + 0xc]
mov ebx, dword [ecx]
mov byte [esi + 7], 1
mov dword [esi + 0x888], 1
lea ecx, [esi + 0x78]
mov dword [esi + 0x64], edx
push edi
push eax
push ebx
call fcn.00418e50
add esp, 0xc
movsd xmm0, qword [esi + 0x78]
mov eax, dword [esi + 0x80]
movsd qword [esi + 0x24], xmm0
mov dword [esi + 0x2c], eax
jmp 0x401e08
mov byte [esi + 5], 1
mov byte [esi + 6], 1
mov dword [esi + 0x888], 5
push edi
call edx
add esp, 4
mov eax, dword [esi + 0x54]
cmp eax, 3
je 0x4022c4
mov eax, dword [esi + 0x18]
mov edx, dword [eax]
mov ecx, dword [edx + 0x84]
mov edi, dword [edx + 0x80]
mov eax, ecx
sub eax, edi
test eax, eax
jle 0x401f90
mov edi, dword [ebp + 8]
cmp byte [edi + 0x9c], 0
je 0x401ec0
lea eax, [ecx - 1]
mov dword [edx + 0x84], eax
mov ebx, eax
mfence
mov edx, dword [esi + 0x18]
mov edi, dword [edx]
mov edx, dword [edi + 0x80]
sub ebx, edx
js 0x401f10
mov dword [esi + 0x10], edi
mov edi, dword [ebp + 8]
mov dword [esi + 0x1c], ebx
mov ebx, dword [edi + 0x94]
mov edi, dword [edi + 0x98]
mov dword [esi + 8], ebx
mov dword [esi + 0x14], edi
dec edi
mov ebx, dword [esi + 8]
and edi, eax
cmp eax, edx
mov ebx, dword [ebx + edi*8]
mov dword [esi + 0xc], ebx
mov ebx, dword [esi + 8]
mov edi, dword [ebx + edi*8 + 4]
jne 0x401f18
mov edx, dword [esi + 0x10]
lock cmpxchg dword [edx + 0x80], ecx
mov eax, dword [esi + 0x18]
mov eax, dword [eax]
mov dword [eax + 0x84], ecx
mov eax, dword [esi + 0xc]
je 0x401f80
jmp 0x401f90
mov edi, 1
lock xadd dword [edx + 0x80], edi
mov edx, edi
not edx
add ecx, edx
js 0x401f61
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x94]
mov edx, dword [edx + 0x98]
lea ebx, [edx - 1]
and ebx, edi
test edx, edx
mov edi, dword [ecx + ebx*8]
mov dword [esi + 0xc], edi
mov edi, dword [ecx + ebx*8 + 4]
lea ecx, [edx + 3]
cmovns ecx, edx
cmp edx, 0x41
jb 0x401f6e
sar ecx, 2
cmp eax, ecx
mov eax, dword [esi + 0xc]
jle 0x401f37
jmp 0x401f80
mov dword [edi + 0x84], ecx
jmp 0x401f90
mov edx, dword [esi + 0x14]
lea eax, [edx + 3]
test edx, edx
cmovns eax, edx
cmp edx, 0x41
jb 0x40229d
sar eax, 2
cmp dword [esi + 0x1c], eax
mov eax, dword [esi + 0xc]
jge 0x401f80
mov ecx, dword [esi + 0x18]
shr edx, 1
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
mov byte [esi + 5], 1
mov byte [esi + 6], 1
mov dword [esi + 0x888], 5
call fcn.0057b900
mov edi, dword [esi + 8]
mov eax, dword [esi + 0xc]
jmp 0x401f80
mov eax, dword [esi + 0x18]
mov eax, dword [eax]
mov dword [eax + 0x80], edi
jmp 0x401f90
mov eax, dword [esi + 0xc]
nop word cs:[eax + eax]
nop dword [eax + eax]
test eax, eax
jne 0x40227a
nop dword [eax + eax]
mov dword [esi + 0x888], 5
jmp 0x401fbc
mov dword [esi + 8], ebx
mov byte [esi + 5], 1
mov byte [esi + 6], 1
call fcn.0057ffd0
mov ebx, dword [esi + 8]
cmp ebx, 2
jne 0x402270
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xa0]
mov dword [esi + 0x10], eax
mov eax, dword [eax + 0x80]
mov byte [esi + 5], 1
mov byte [esi + 6], 1
mov dword [esi + 8], eax
call fcn.004b86e0
test eax, eax
je 0x402010
mov eax, dword [eax]
mov eax, dword [eax + 0x40c]
test eax, eax
je 0x402160
mfence
mov dword [esi + 0x888], 5
jmp 0x402160
mov eax, dword [0x5fd1f8]
cmp eax, 3
je 0x402027
mov byte [esi + 5], 1
mov byte [esi + 6], 1
call fcn.00580280
mov edx, dword [0x5fd1fc]
lock inc dword [edx]
jle 0x4024d3
mov eax, 0xfffffc00
lea ecx, [esi + 0x478]
nop word cs:[eax + eax]
nop dword [eax + eax]
movsd xmm0, qword [0x599688]
movsd xmm1, qword [0x599680]
movsd qword [esi + eax + 0x480], xmm0
movsd qword [esi + eax + 0x478], xmm1
add eax, 0x10
jne 0x402050
mov dword [esi + 0x14], edx
push 0x400
lea eax, [esi + 0x78]
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movzx eax, byte [0x5fd2ec]
xor ecx, ecx
mov edx, 0x4c0
call fcn.0056a9f0
test eax, eax
je 0x402439
mov ebx, eax
and ebx, 0xffffffc0
mov dword [ebx + 0x3c], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x40], 0
lea edi, [ebx + 0x40]
mov dword [ebx + 0x44], eax
lea eax, [ebx + 0x48]
push 0x400
lea ecx, [esi + 0x478]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movaps xmm0, xmmword [0x589270]
mov ecx, dword [esi + 0x14]
movups xmmword [ebx + 0x448], xmm0
mov dword [ebx + 0x480], 0
mov eax, dword [ecx + 0x100]
mov dword [ebx + 0x40], eax
lock cmpxchg dword [ecx + 0x100], edi
je 0x40211c
nop word cs:[eax + eax]
nop
mov dword [edi], eax
lock cmpxchg dword [ecx + 0x100], edi
jne 0x402110
mov eax, dword [edi + 0x40c]
mov ecx, dword [edi + 0x410]
lea edx, [ecx - 1]
test eax, eax
mov dword [edi + 0x410], edx
jne 0x401fea
cmp ecx, 1
jne 0x401fea
mov ecx, edi
mov byte [esi + 5], 1
mov byte [esi + 6], 1
mov dword [esi + 0x888], 5
call fcn.0057ffd0
nop dword [eax + eax]
mov byte [esi + 5], 1
mov byte [esi + 6], 1
mov dword [esi + 0x888], 5
call fcn.004079f0
mov ebx, dword [esi + 0x10]
mov ecx, eax
mov eax, dword [ebx + 0x84]
mov edi, dword [esi + 8]
sub eax, edi
test eax, eax
jle 0x402210
mov edx, dword [ebx + 0x40]
mov eax, edi
mov dword [esi + 0x14], edx
and edx, 0xfffffffc
mov edi, dword [edx]
mov edx, dword [edx + 4]
dec edx
and edx, eax
mov eax, dword [edi + edx*8]
mov dword [esi + 0xc], eax
mov edi, dword [edi + edx*8 + 4]
mov edx, dword [ebx + 0x40]
cmp edx, dword [esi + 0x14]
jne 0x402220
mov eax, dword [esi + 8]
lea edx, [eax + 1]
lock cmpxchg dword [ebx + 0x80], edx
mov ebx, 2
jne 0x402212
test ecx, ecx
je 0x402298
mov eax, dword [ecx + 0x40c]
lea edx, [eax - 1]
cmp eax, 1
mov eax, dword [esi + 0xc]
mov dword [ecx + 0x40c], edx
jne 0x40227a
mov dword [ecx + 0x440], 0
mov ebx, 1
mov dword [esi + 0x1c], edi
mov dword [esi + 0x68], eax
cmp dword [ecx + 0x410], 0
je 0x401fa0
jmp 0x40227a
xor ebx, ebx
test ecx, ecx
jne 0x40222d
jmp 0x401fb3
mov ebx, 2
test ecx, ecx
je 0x401fb3
mov eax, dword [ecx + 0x40c]
lea edx, [eax - 1]
cmp eax, 1
mov dword [ecx + 0x40c], edx
jne 0x401fb3
mov dword [ecx + 0x440], 0
cmp dword [ecx + 0x410], 0
jne 0x401fb3
jmp 0x401fa0
mov edi, dword [esi + 0x1c]
mov eax, dword [esi + 0x68]
test ebx, ebx
je 0x4022a9
lea ecx, [esi + 0x30]
mov edx, eax
cmp ecx, edi
jne 0x401df0
cmp edx, 0x41c310
jne 0x401df0
jmp 0x40231b
mov eax, dword [esi + 0xc]
jmp 0x40227a
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x40227a
jmp 0x401f90
mov eax, dword [esi + 0x54]
cmp eax, 3
je 0x4022c4
mov ecx, dword [ebp + 8]
lea edx, [esi + 0x54]
mov byte [esi + 5], 1
mov byte [esi + 6], 1
call fcn.00580f00
mov eax, dword [esi + 0x2c]
movsd xmm0, qword [esi + 0x24]
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
mov dword [esi + 0x80], eax
mov eax, dword [esi + 0x40]
movsd qword [esi + 0x78], xmm0
cmp eax, 1
jne 0x40245c
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x20]
movsd xmm0, qword [esi + 0x24]
mov dword [edi + 8], eax
movsd qword [edi], xmm0
mov dword [edi + 0xc], ecx
mov ecx, dword [esi + 0x4c]
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], ecx
mov eax, dword [esi + 0x880]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movsd xmm0, qword [esi + 0x30]
movsd xmm3, qword [esi + 0x58]
movsd xmm2, qword [esi + 0x50]
movsd xmm1, qword [esi + 0x38]
mov dword [esi + 0x888], 7
movsd qword [esi + 0x78], xmm0
movsd qword [esi + 0xa0], xmm3
movsd qword [esi + 0x98], xmm2
movsd xmm3, qword [esi + 0x48]
movsd xmm2, qword [esi + 0x40]
movsd qword [esi + 0x80], xmm1
cmp dword [esi + 0x78], 0
movsd qword [esi + 0x90], xmm3
movsd qword [esi + 0x88], xmm2
je 0x402494
mov eax, dword [esi + 0x7c]
mov edx, dword [esi + 0x64]
lea ecx, [esi + 0x6c]
push dword [esi + 0x84]
push dword [esi + 0x80]
push dword [eax]
call fcn.00418e50
add esp, 0xc
mov eax, dword [esi + 0x88]
test eax, eax
je 0x402412
cmp eax, 1
jne 0x4023c7
lea ecx, [esi + 0x8c]
mov byte [esi + 5], 1
mov byte [esi + 6], 0
mov dword [esi + 0x888], 5
call fcn.0040d240
jmp 0x402412
mov eax, dword [esi + 0x8c]
mov ecx, dword [esi + 0x90]
mov dword [esi + 0x888], 6
mov dword [esi + 0x10], eax
push eax
mov dword [esi + 8], ecx
call dword [ecx]
add esp, 4
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x402412
cmp dword [eax + 8], 9
jae 0x4023fd
mov eax, dword [esi + 0x10]
jmp 0x402403
mov eax, dword [esi + 0x10]
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x5fd290]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x20]
movsd xmm0, qword [esi + 0x24]
movsd xmm1, qword [esi + 0x6c]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x74]
movsd qword [ecx], xmm0
movsd qword [ecx + 0xc], xmm1
mov dword [ecx + 0x14], eax
jmp 0x402307
mov ecx, 0x40
mov edx, 0x480
mov byte [esi + 5], 1
mov byte [esi + 6], 1
mov dword [esi + 0x888], 5
call fcn.0057f230
jmp 0x4024d3
test eax, eax
jne 0x402483
mov dword [esi + 0x888], 8
mov ecx, str.internal_error:_entered_unreachable_code_rustc_aedd173a2c086e558c2b66d3743b344f977621a7library_alloc_src_vecmod.rs
mov edx, 0x28
push 0x589c18
call fcn.0057f7d0
add esp, 4
jmp 0x4024d3
mov dword [esi + 0x888], 8
call fcn.004bd060
jmp 0x4024d3
mov ecx, 0x589c28
call fcn.0057fb10
jmp 0x4024d3
ud2