Function at 0x498970
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x606e70
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.0040b930
xor ebx, ebx
mov dword [esp + 0x60], ebx
push 0x6ca140
push 0x6cb580
lea edx, [esp + 0x30]
push edx
call fcn.0040bb60
mov edi, dword [ebp + 0x10]
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x1c], ebx
je 0x498edb
lea ebx, [ebx]
mov esi, dword [esp + 0x28]
mov eax, ebx
call fcn.00475b10
xor ecx, ecx
test esi, esi
setne cl
test ecx, ecx
je 0x498f16
mov eax, dword [eax]
push esi
push eax
call fcn.005c3c4f
add esp, 8
test eax, eax
jne 0x498eb5
xor esi, esi
mov eax, ebx
mov dword [esp + 0x24], esi
call fcn.00475b10
mov ecx, dword [eax + 0x14]
sub ecx, dword [eax + 0x10]
add eax, 4
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
je 0x498eb5
mov dword [esp + 0x18], esi
mov edi, edi
mov eax, ebx
call fcn.00475b10
mov ecx, eax
mov edx, dword [ecx + 0x14]
sub edx, dword [ecx + 0x10]
add ecx, 4
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x2c], ecx
cmp esi, eax
jb 0x498a83
call fcn.005c475a
mov ecx, dword [esp + 0x2c]
mov ecx, dword [ecx + 0xc]
mov edx, dword [esp + 0x18]
cmp dword [edx + ecx], 1
je 0x498ad4
mov eax, ebx
call fcn.00475b10
mov ecx, eax
mov edx, dword [ecx + 0x14]
sub edx, dword [ecx + 0x10]
add ecx, 4
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x2c], ecx
cmp esi, eax
jb 0x498ac3
call fcn.005c475a
mov ecx, dword [esp + 0x2c]
mov ecx, dword [ecx + 0xc]
mov edx, dword [esp + 0x18]
cmp dword [edx + ecx], 4
jne 0x498e83
mov eax, ebx
call fcn.00475b10
mov ebx, eax
mov ecx, dword [ebx + 0x14]
sub ecx, dword [ebx + 0x10]
add ebx, 4
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x498aff
call fcn.005c475a
mov ebx, dword [ebx + 0xc]
add ebx, dword [esp + 0x18]
mov ebx, dword [ebx + 4]
mov ecx, dword [ebx - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
sub ebx, 0x10
call eax
cmp dword [ebx + 0xc], 0
lea ecx, [ebx + 0xc]
jl 0x498b2e
cmp eax, dword [ebx]
jne 0x498b2e
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x498b6f
mov ecx, dword [ebx + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov dword [esp + 0x2c], eax
test eax, eax
je 0x498f20
mov ecx, dword [ebx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [ebx + 4]
lea edx, [ecx + ecx + 2]
push edx
add ebx, 0x10
push ebx
lea ecx, [ecx + ecx + 2]
push ecx
add eax, 0x10
push eax
call fcn.005c4800
mov ebx, dword [esp + 0x3c]
add esp, 0x10
add ebx, 0x10
mov dword [esp + 0x14], ebx
mov byte [esp + 0x60], 2
mov eax, dword [esp + 0x1c]
call fcn.00475b10
mov ebx, eax
mov ecx, dword [ebx + 0x14]
sub ecx, dword [ebx + 0x10]
add ebx, 4
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x498ba8
call fcn.005c475a
mov ecx, dword [ebx + 0xc]
mov edx, dword [esp + 0x18]
mov eax, dword [edx + ecx + 8]
cmp dword [eax - 0xc], 0
je 0x498cc1
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x38]
push edx
mov ebx, 0x6d09dc
call fcn.0041e2b0
add esp, 8
mov ebx, eax
mov byte [esp + 0x60], 3
mov eax, dword [esp + 0x1c]
call fcn.00475b10
mov edi, eax
mov ecx, dword [edi + 0x14]
sub ecx, dword [edi + 0x10]
add edi, 4
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x498c08
call fcn.005c475a
mov edi, dword [edi + 0xc]
add edi, dword [esp + 0x18]
lea ecx, [esp + 0x30]
add edi, 8
push edi
push ecx
call fcn.004247e0
add esp, 8
mov byte [esp + 0x60], 4
mov ecx, dword [eax]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x498c77
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x498c6a
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x498c6a
call fcn.0040fb70
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x498c61
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x14], ebx
jmp 0x498c77
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.0040fac0
mov byte [esp + 0x60], 3
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x498c9c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x60], 2
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x498cc1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x498cec
cmp eax, dword [esi]
jne 0x498cec
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x498d27
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x498f20
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.005c4800
add esp, 0x10
add edi, 0x10
mov dword [esp + 0x20], edi
mov byte [esp + 0x60], 8
mov esi, dword [edi - 0xc]
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x498d56
mov ecx, esi
lea eax, [esp + 0x20]
call fcn.004123c0
mov edi, dword [esp + 0x20]
lea ecx, [esi + 1]
push ecx
push edi
call fcn.005c44a8
add esp, 8
test esi, esi
jl 0x498f25
cmp esi, dword [edi - 8]
jg 0x498f25
mov dword [edi - 0xc], esi
xor edx, edx
mov word [edi + esi*2], dx
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x140]
mov ecx, dword [esi + 0x128]
add esi, 0x128
lea edx, [esp + 0x20]
mov dword [esp + 0x3c], eax
push edx
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x40], ecx
call fcn.00425300
mov ebx, eax
mov eax, dword [ebx]
test eax, eax
je 0x498db7
cmp eax, dword [esp + 0x38]
je 0x498dbc
call fcn.005c475a
mov ecx, dword [esp + 0x3c]
cmp dword [ebx + 4], ecx
jne 0x498e32
lea edx, [esp + 0x20]
push edx
push esi
lea ebx, [esp + 0x50]
call fcn.004251c0
mov eax, dword [esp + 0x1c]
mov edi, dword [ebp + 0x10]
call fcn.00475b10
mov esi, eax
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
add esi, 4
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x24], eax
jb 0x498e06
call fcn.005c475a
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x18]
cmp dword [edx + ecx], 4
jne 0x498e22
push str._x64_
lea eax, [esp + 0x18]
push eax
call fcn.004300f0
mov edi, dword [ebp + 0x14]
lea ebx, [esp + 0x14]
call fcn.00424a30
mov edi, dword [esp + 0x20]
mov byte [esp + 0x60], 2
add edi, 0xfffffff0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x498e53
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov byte [esp + 0x60], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x498e78
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
mov edi, dword [ebp + 0x10]
add dword [esp + 0x18], 0xc
inc esi
mov eax, ebx
mov dword [esp + 0x24], esi
call fcn.00475b10
mov ecx, dword [eax + 0x14]
sub ecx, dword [eax + 0x10]
add eax, 4
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp esi, ecx
jb 0x498a50
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
mov dword [esp + 0x1c], ebx
cmp ebx, eax
jb 0x4989f0
mov dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x498f03
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403d10
call fcn.0040fb60
push 0x80070057
call fcn.00403d10
int3