Function at 0x100197c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov esi, esp
mov dword [esi + 0x30], ebp
mov dword [esi + 4], ecx
movzx edx, byte [ebp + 8]
mov dword [esi + 0x34], esp
mov dword [esi + 0x40], 0xffffffff
lea eax, [esi + 0x38]
mov dword [esi + 0x3c], 0x10020940
mov ecx, dword fs:[0]
mov dword [esi + 0x38], ecx
mov dword fs:[0], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
cmp edx, 1
mov dword [esi + 0x2c], edx
je 0x100198db
mov eax, edx
cmp edx, 2
jne 0x100199ec
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov edi, dword [eax + 4]
mov ecx, dword [eax]
mov edx, edi
sub edx, ecx
sar edx, 4
mov dword [esi + 0x18], edx
mov edx, edi
sub edx, ecx
je 0x10019863
js 0x10019d77
mov dword [esi + 0x40], 0
lea eax, [esi + 0x18]
lea ecx, [esi + 8]
push eax
call fcn.10019dc0
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax]
mov dword [esi + 0x14], edi
cmp edx, edi
jne 0x100198af
jmp 0x100199ec
movzx ecx, byte [edx]
mov byte [eax], cl
movsd xmm0, qword [edx + 8]
movsd qword [eax + 8], xmm0
mov byte [edx], 0
mov dword [edx + 0xc], 0
mov dword [edx + 8], 0
add dword [esi + 0xc], 0x10
add edx, 0x10
cmp edx, edi
je 0x100199ec
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
jne 0x10019880
mov dword [esi + 0x40], 0
lea ecx, [esi + 8]
push edx
push eax
mov dword [esi], edx
call fcn.10019f10
mov edx, dword [esi]
mov edi, dword [esi + 0x14]
add edx, 0x10
cmp edx, edi
jne 0x100198af
jmp 0x100199ec
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esi + 0x18], ecx
test ecx, ecx
je 0x1001990e
cmp ecx, 0x10000000
jae 0x10019d83
mov dword [esi + 0x40], 0
lea eax, [esi + 0x18]
lea ecx, [esi + 8]
push eax
call fcn.10019dc0
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov edx, dword [eax]
mov eax, dword [edx]
mov dword [esi + 0x14], edx
nop word cs:[eax + eax]
cmp eax, edx
je 0x100199ec
mov edi, eax
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
je 0x10019960
movzx ecx, byte [edi + 0x28]
mov byte [eax], cl
movsd xmm0, qword [edi + 0x30]
movsd qword [eax + 8], xmm0
mov byte [edi + 0x28], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x30], 0
add dword [esi + 0xc], 0x10
jmp 0x1001997b
lea edx, [edi + 0x28]
mov dword [esi + 0x40], 0
lea ecx, [esi + 8]
push edx
push eax
mov dword [esi], edi
call fcn.10019f10
mov edi, dword [esi]
mov edx, dword [esi + 0x14]
mov ecx, dword [edi + 8]
cmp byte [ecx + 0xd], 0
je 0x100199b0
nop word cs:[eax + eax]
mov eax, dword [edi + 4]
cmp byte [eax + 0xd], 0
jne 0x10019920
mov ecx, edi
mov edi, eax
cmp ecx, dword [eax + 8]
je 0x10019990
mov eax, edi
jmp 0x10019920
mov eax, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x100199b0
jmp 0x10019920
mov edi, dword [esi + 0x20]
mov ebx, dword [edi]
mov ecx, edi
push dword [ebx + 4]
push edi
call fcn.1001a160
mov dword [ebx + 4], ebx
mov dword [ebx], ebx
mov dword [ebx + 8], ebx
mov dword [edi + 4], 0
movzx eax, byte [esi + 0x18]
lea ecx, [esi + 0x20]
push eax
call fcn.100197c0
mov edi, dword [esi + 8]
mov eax, dword [esi + 0xc]
cmp edi, eax
je 0x10019b9f
movzx ecx, byte [eax - 0x10]
mov byte [esi + 0x18], cl
movsd xmm0, qword [eax - 8]
movsd qword [esi + 0x20], xmm0
mov byte [eax - 0x10], 0
mov dword [eax - 4], 0
mov dword [eax - 8], 0
mov ecx, dword [esi + 0xc]
movzx eax, byte [ecx - 0x10]
add ecx, 0xfffffff8
push eax
call fcn.100197c0
add dword [esi + 0xc], 0xfffffff0
movzx eax, byte [esi + 0x18]
cmp eax, 1
je 0x10019af0
cmp eax, 2
jne 0x100199df
mov eax, dword [esi + 0x20]
mov edx, dword [eax]
mov edi, dword [eax + 4]
mov dword [esi + 0x14], edi
cmp edx, edi
jne 0x10019a8b
jmp 0x10019ab2
movzx ecx, byte [edx]
mov byte [eax], cl
movsd xmm0, qword [edx + 8]
movsd qword [eax + 8], xmm0
mov byte [edx], 0
mov dword [edx + 0xc], 0
mov dword [edx + 8], 0
add dword [esi + 0xc], 0x10
add edx, 0x10
cmp edx, edi
je 0x10019ab2
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
jne 0x10019a60
mov dword [esi + 0x40], 0
lea ecx, [esi + 8]
push edx
push eax
mov dword [esi], edx
call fcn.10019f10
mov edi, dword [esi + 0x14]
mov edx, dword [esi]
add edx, 0x10
cmp edx, edi
jne 0x10019a8b
mov eax, dword [esi + 0x20]
mov ebx, dword [eax]
mov edi, dword [eax + 4]
cmp ebx, edi
je 0x100199df
mov dword [esi], eax
nop word cs:[eax + eax]
movzx eax, byte [ebx]
lea ecx, [ebx + 8]
push eax
call fcn.100197c0
add ebx, 0x10
cmp ebx, edi
jne 0x10019ad0
mov ecx, dword [esi]
mov eax, dword [ecx]
mov dword [ecx + 4], eax
jmp 0x100199df
mov eax, dword [esi + 0x20]
mov edx, dword [eax]
mov eax, dword [edx]
mov dword [esi + 0x14], edx
nop word [eax + eax]
cmp eax, edx
je 0x100199c0
mov edi, eax
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
je 0x10019b40
movzx ecx, byte [edi + 0x28]
mov byte [eax], cl
movsd xmm0, qword [edi + 0x30]
movsd qword [eax + 8], xmm0
mov byte [edi + 0x28], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x30], 0
add dword [esi + 0xc], 0x10
jmp 0x10019b5b
lea edx, [edi + 0x28]
mov dword [esi + 0x40], 0
lea ecx, [esi + 8]
push edx
push eax
mov dword [esi], edi
call fcn.10019f10
mov edi, dword [esi]
mov edx, dword [esi + 0x14]
mov ecx, dword [edi + 8]
cmp byte [ecx + 0xd], 0
je 0x10019b90
nop word cs:[eax + eax]
mov eax, dword [edi + 4]
cmp byte [eax + 0xd], 0
jne 0x10019b00
mov ecx, edi
mov edi, eax
cmp ecx, dword [eax + 8]
je 0x10019b70
mov eax, edi
jmp 0x10019b00
mov eax, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x10019b90
jmp 0x10019b00
movzx eax, byte [esi + 0x2c]
dec eax
cmp eax, 7
ja case.0x10019bad.4
jmp dword [eax*4 + 0x10019da0]
mov ebx, dword [esi + 4]
mov edi, dword [ebx]
mov eax, dword [edi]
mov ecx, edi
push dword [eax + 4]
push edi
call fcn.1001a160
push 0x38
push dword [edi]
call fcn.100ea090
add esp, 8
push 8
push dword [ebx]
jmp 0x10019d08
mov eax, dword [esi + 4]
mov edi, dword [eax]
mov eax, dword [edi + 0x14]
cmp eax, 0x10
jb 0x10019c17
mov ecx, dword [edi]
lea ebx, [eax + 1]
cmp ebx, 0x1000
jb 0x10019c0d
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x10019d71
add eax, 0x24
mov ebx, eax
mov ecx, edx
push ebx
push ecx
call fcn.100ea090
add esp, 8
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
push 0x18
mov eax, dword [esi + 4]
push dword [eax]
jmp 0x10019d08
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov ebx, dword [eax]
test ebx, ebx
je 0x10019d05
mov dword [esi], eax
mov edi, dword [eax + 4]
cmp ebx, edi
je 0x10019cbe
nop dword [eax]
movzx eax, byte [ebx]
lea ecx, [ebx + 8]
push eax
call fcn.100197c0
add ebx, 0x10
cmp ebx, edi
jne 0x10019c50
mov edi, dword [esi]
mov ebx, dword [edi]
jmp 0x10019cc0
mov eax, dword [esi + 4]
mov edi, dword [eax]
mov ecx, dword [edi]
test ecx, ecx
je 0x10019cb9
mov eax, dword [edi + 8]
sub eax, ecx
cmp eax, 0x1000
jb 0x10019c96
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x10019d71
add eax, 0x23
mov ecx, edx
push eax
push ecx
call fcn.100ea090
add esp, 8
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov eax, dword [esi + 4]
mov edi, dword [eax]
push 0x10
push edi
jmp 0x10019d08
mov edi, dword [esi]
mov eax, dword [edi + 8]
sub eax, ebx
cmp eax, 0x1000
jb 0x10019ce2
mov ecx, dword [ebx - 4]
add ebx, 0xfffffffc
sub ebx, ecx
cmp ebx, 0x20
jae 0x10019d71
add eax, 0x23
mov ebx, ecx
push eax
push ebx
call fcn.100ea090
add esp, 8
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov eax, dword [esi + 4]
mov eax, dword [eax]
push 0xc
push eax
call fcn.100ea090
add esp, 8
mov edi, dword [esi + 8]
test edi, edi
je 0x10019d5e
mov ebx, dword [esi + 0xc]
cmp edi, ebx
je 0x10019d36
nop
movzx eax, byte [edi]
lea ecx, [edi + 8]
push eax
call fcn.100197c0
add edi, 0x10
cmp edi, ebx
jne 0x10019d20
mov edi, dword [esi + 8]
mov eax, dword [esi + 0x10]
sub eax, edi
cmp eax, 0x1000
jb 0x10019d54
mov ecx, dword [edi - 4]
add edi, 0xfffffffc
sub edi, ecx
cmp edi, 0x20
jae 0x10019d71
add eax, 0x23
mov edi, ecx
push eax
push edi
call fcn.100ea090
add esp, 8
mov eax, dword [esi + 0x38]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov dword [esi + 0x40], 0
call fcn.10017720
mov dword [esi + 0x40], 0
call fcn.10017720
nop
push ebp
sub esp, 8
lea esi, [ebp - 0x44]
mov ebp, dword [esi + 0x30]
call sub.VCRUNTIME140.dll___std_terminate
nop
mov ah, 0x9b
add dword [eax], edx
xor al, 0x9c
add dword [eax], edx
fistp dword [ebx - 0x62ecefff]
add dword [eax], edx
adc ebx, dword [ebp - 0x62ecefff]
add dword [eax], edx
adc ebx, dword [ebp - 0x6396efff]
add dword [eax], edx