Function at 0x52c010
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax + 0xaa78]
push esi
push edi
mov edi, dword [ebx + 0x38]
xor ecx, ecx
and edi, 0xfff00000
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x3c], ebx
jne 0x52c048
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, ebx
mov ecx, dword [eax + 0x38]
mov eax, dword [eax]
mov esi, ecx
and esi, 0xfffff
xor edx, edx
div esi
and ecx, 0xfff00000
cmp ecx, 0x50200000
mov dword [ebp - 0x18], esi
mov edx, eax
mov dword [ebp - 0xc], edx
je 0x52c07d
cmp edi, 0x70800000
je 0x52c07d
xor cl, cl
jmp 0x52c07f
mov cl, 1
mov eax, dword [ebx + 0x38]
cmp edi, 0x50000000
sete byte [ebp - 0x10]
and eax, 0xf0000000
cmp eax, 0x60000000
mov byte [ebp - 6], 0
je 0x52ce80
cmp eax, 0xa0000000
je 0x52ce80
mov eax, dword [ebx + 0x38]
call fcn.004cb160
test al, al
jne 0x52ce80
cmp edi, 0x50600000
je 0x52ce80
test cl, cl
jne 0x52ce60
xor esi, esi
test edx, edx
mov dword [ebp - 0x1c], esi
jbe 0x52c178
lea edi, [ebp - 0xdc]
mov eax, edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x30], eax
lea ebx, [ebx]
or eax, 0xffffffff
mov dword [edi], eax
mov dword [edi + 4], eax
xor ecx, ecx
cmp dword [ebp - 0x18], ecx
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
jbe 0x52c158
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 4]
add eax, dword [ebp - 0x24]
lea edx, [esi*4]
mov dword [ebp - 0x38], edx
cmp byte [ebp - 0x10], 0
mov esi, dword [eax]
je 0x52c12d
mov edx, dword [esi + 0x2c]
mov esi, dword [ebp - 0x14]
mov dword [esi], edx
jmp 0x52c146
mov edx, dword [ebx + 0xc]
mov edx, dword [edx + ecx*4]
mov edx, dword [edx + 0x2c]
add edx, dword [ebp - 0x38]
mov esi, dword [esi + 0x2c]
mov ebx, dword [ebp - 0x3c]
mov dword [ebp + edx*4 - 0xdc], esi
add dword [ebp - 0x14], 4
add ecx, 1
add eax, 4
cmp ecx, dword [ebp - 0x18]
jb 0x52c11b
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x30], 0x10
add eax, eax
add eax, eax
add dword [ebp - 0x24], eax
add esi, 1
add edi, 0x10
cmp esi, dword [ebp - 0xc]
mov dword [ebp - 0x1c], esi
jb 0x52c0f0
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + 8]
and eax, 0x20
xor ecx, ecx
or eax, ecx
je 0x52c306
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xaa78]
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 4]
mov eax, dword [eax]
mov edx, dword [edx]
mov edx, dword [edx + 0x98]
mov dword [ebp - 0x38], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
push edx
call eax
mov edi, eax
cmp edi, 0xffff
mov dword [ebp - 0x3c], edi
je 0x52c34c
cmp edi, 0xb
jne 0x52c1de
mov ecx, 0x774ef0
lea eax, [ebp - 0xdc]
call fcn.0052bb20
test al, al
jmp 0x52c215
cmp edi, 0xd
jne 0x52c21f
xor bl, bl
mov edi, 0x774eb0
xor esi, esi
lea esp, [esp]
mov ecx, edi
lea eax, [ebp - 0xdc]
call fcn.0052bb20
test al, al
jne 0x52c20e
add esi, 0x10
add edi, 0x10
cmp esi, 0x40
jb 0x52c1f0
jmp 0x52c210
mov bl, 1
mov edi, dword [ebp - 0x3c]
test bl, bl
sete byte [ebp - 6]
cmp byte [ebp - 6], 0
jne 0x52c22b
mov ecx, dword [ebp - 0x38]
test dword [ecx + 0x48], 0x1f80
je 0x52c245
mov edx, dword [ebp - 0x18]
push edx
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp + 8]
call fcn.0052be60
mov esi, eax
test esi, esi
jl 0x52cffb
xor eax, eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
lea esi, [ebp - 0x8c]
lea eax, [ebp - 0xdc]
call fcn.0052bb60
test al, al
jne 0x52c287
cmp edi, 0xd
jne 0x52c34c
cmp dword [ebp - 0xdc], 0
jne 0x52c34c
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
push ecx
push edx
mov edx, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x8c]
push ecx
push edx
call fcn.0051b880
mov esi, eax
test esi, esi
jl 0x52cffb
cmp byte [ebp - 0x10], 0
mov ecx, dword [ebp + 8]
je 0x52c2d0
mov eax, dword [ecx + 0xaa78]
mov edx, dword [eax + 0xc]
mov eax, dword [ecx + 0x10]
mov edi, dword [ecx + 0x14]
mov eax, dword [edi + eax*4 - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [edx]
mov dword [eax], edx
mov eax, dword [ecx + 0xaa78]
xor edi, edi
mov dword [eax + 0x38], edi
mov dword [eax], edi
mov dword [eax + 8], edi
mov eax, dword [ebp - 0x28]
cmp eax, edi
je 0x52d1bf
push eax
mov esi, ecx
call fcn.004ca180
mov esi, eax
cmp esi, edi
jl 0x52cffb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor edi, edi
cmp dword [ebp - 0xc], edi
jbe 0x52c34c
lea esi, [ebp - 0xdc]
xor edx, edx
xor eax, eax
mov ecx, dword [esi + eax*4]
cmp ecx, 0xffffffff
je 0x52c32b
lea ebx, [eax + edx]
cmp ecx, dword [ebx*4 + 0x774eb0]
jne 0x52c340
add eax, 1
cmp eax, 4
jb 0x52c317
add edi, 1
add esi, 0x10
cmp edi, dword [ebp - 0xc]
jb 0x52c313
jmp 0x52c34c
add edx, 4
cmp edx, 0x20
jb 0x52c315
mov byte [ebp - 6], 1
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xaa78]
mov ecx, dword [eax + 0x38]
and ecx, 0xfff00000
cmp ecx, 0x10d00000
je 0x52c372
cmp ecx, 0x10e00000
jne 0x52c535
mov ecx, dword [eax]
xor bl, bl
test ecx, ecx
jbe 0x52c535
mov eax, dword [eax + 4]
mov edx, ecx
mov ecx, dword [eax]
test dword [ecx + 0x48], 0x1f80
je 0x52c390
mov bl, 1
add eax, 4
sub edx, 1
jne 0x52c383
test bl, bl
je 0x52c535
mov eax, dword [esi + 0x28fc]
mov dword [ebp - 0x1c], eax
xor edi, edi
lea ebx, [ebp - 0x9c]
fldz
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28fc]
sub esp, 8
fstp qword [esp]
push 0
push 0
push edi
push edx
push ecx
push ebx
push eax
call fcn.004ca3c0
mov esi, eax
test esi, esi
jl 0x52cffb
add edi, 1
add ebx, 4
cmp edi, 4
jb 0x52c3b1
mov eax, dword [ebp - 0x1c]
add dword [eax + 0x10], 1
mov eax, dword [0x776138]
xor ebx, ebx
cmp eax, ebx
jge 0x52c401
xor eax, eax
jmp 0x52c408
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0x10], ebx
je 0x52c430
mov ecx, dword [eax + 0x10]
cmp ecx, ebx
jne 0x52c41a
xor ecx, ecx
mov edi, ecx
jmp 0x52c43e
mov edx, dword [ecx]
cmp edx, ebx
mov dword [eax + 0x10], edx
jne 0x52c426
mov dword [eax + 0x14], ebx
mov dword [ecx], 0xfefefefe
mov edi, ecx
jmp 0x52c43e
mov ecx, dword [eax + 0xc]
push 0x10
push 0x40
call fcn.007515ae
mov edi, eax
cmp edi, ebx
je 0x52c63e
mov edx, dword [ebp + 8]
or eax, 0xffffffff
mov dword [edi + 0x10], eax
mov dword [edi + 0x20], eax
mov dword [edi], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0x38], ebx
mov dword [edi + 4], ebx
mov word [edi + 0x3c], bx
mov dword [edi + 0xc], ebx
mov word [edi + 0x3e], bx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov edx, dword [edx + 0xaa78]
mov ecx, dword [edx]
mov edx, dword [edx + 8]
mov eax, ecx
push ebx
and eax, 0xfffff
or eax, 0x10000000
push edi
mov dword [ebp - 0x34], edi
call fcn.004cc5e0
mov esi, eax
cmp esi, ebx
jl 0x52cffb
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xaa78]
mov ecx, dword [eax + 0x30]
mov dword [edi + 0x30], ecx
mov edx, dword [eax + 0x34]
mov dword [edi + 0x34], edx
mov eax, dword [esi + 0xaa78]
mov eax, dword [eax + 8]
lea ecx, [eax*4]
mov eax, dword [edi + 0xc]
push ecx
lea edx, [ebp - 0x9c]
push edx
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esi + 0xaa78]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [edi + 4]
add ecx, ecx
add esp, 0xc
add ecx, ecx
push ecx
push eax
push edx
call sub.msvcrt.dll_memcpy
mov eax, dword [esi + 0xaa78]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add ecx, ecx
add esp, 0xc
add ecx, ecx
push ecx
lea edx, [ebp - 0x9c]
push edx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push edi
call fcn.004ca180
mov esi, eax
test esi, esi
jl 0x52cffb
mov esi, dword [ebp + 8]
mov dword [ebp - 0x34], 0
cmp byte [ebp - 6], 0
je 0x52ce10
test byte [esi + 0xa8], 2
je 0x52ce10
mov eax, dword [ebp - 0x18]
cmp eax, 4
mov byte [ebp - 6], 0
mov byte [ebp - 0x1e], 0
jne 0x52c932
mov byte [ebp - 5], 1
mov dword [ebp - 0x14], 0
jmp 0x52c570
cmp byte [ebp - 5], 0
je 0x52c616
xor eax, eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
or eax, 0xffffffff
cmp dword [ebp - 0xc], 0
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x8c], 0xffffffff
mov dword [ebp + eax*4 - 0x7c], 0
mov byte [ebp - 5], 0
jbe 0x52c64b
mov ecx, dword [ebp - 0xc]
lea edi, [ebp - 0xdc]
mov dword [ebp - 0x1c], ecx
lea esi, [ebp - 0x8c]
mov eax, edi
call fcn.0052bb60
mov bl, al
lea esi, [ebp - 0x7c]
mov eax, edi
call fcn.0052bb60
test bl, bl
je 0x52c5f1
test al, al
jne 0x52c5f5
mov byte [ebp - 5], 1
add edi, 0x10
sub dword [ebp - 0x1c], 1
jne 0x52c5d0
cmp byte [ebp - 5], 0
je 0x52c64b
mov eax, dword [ebp - 0x14]
add eax, 1
cmp eax, 4
mov dword [ebp - 0x14], eax
jb 0x52c570
cmp byte [ebp - 0x10], 0
jne 0x52cb4c
mov byte [ebp - 5], 1
mov dword [ebp - 0x14], 0
cmp byte [ebp - 5], 0
je 0x52c889
xor edx, edx
xor ebx, ebx
jmp 0x52c769
mov dword [ebp - 0x34], ebx
mov esi, 0x8007000e
jmp 0x52cffb
mov edi, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov ebx, dword [ebp + 8]
push edi
push 4
push edx
lea eax, [ebp - 0x8c]
push eax
push ebx
call fcn.0051b880
mov esi, eax
test esi, esi
jl 0x52cffb
mov ecx, dword [ebp - 0xc]
push edi
push 4
push ecx
lea edx, [ebp - 0x7c]
push edx
push ebx
call fcn.0051b880
mov esi, eax
test esi, esi
jl 0x52cffb
cmp byte [ebp - 0x10], 0
je 0x52cb0b
call fcn.004ce850
mov edi, eax
xor eax, eax
cmp edi, eax
je 0x52c641
or ecx, 0xffffffff
push eax
mov dword [edi + 0x10], ecx
mov dword [edi + 0x20], ecx
mov dword [edi], eax
mov dword [edi + 8], eax
mov dword [edi + 0x38], eax
mov dword [edi + 4], eax
mov word [edi + 0x3c], ax
mov dword [edi + 0xc], eax
mov word [edi + 0x3e], ax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x24], eax
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
lea edx, [eax + 1]
lea ecx, [eax + 2]
push edi
mov eax, 0x20400001
call fcn.004cc5e0
mov esi, eax
test esi, esi
jl 0x52c747
mov eax, dword [ebx + 0xaa78]
mov ecx, dword [eax + 0x30]
mov dword [edi + 0x30], ecx
mov edx, dword [eax + 0x34]
mov dword [edi + 0x34], edx
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x14]
mov edx, dword [ecx + eax*4 - 8]
mov eax, dword [edx + 0xc]
mov edx, dword [eax]
mov ecx, dword [edi + 4]
mov dword [ecx], edx
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x14]
mov edx, dword [ecx + eax*4 - 4]
mov eax, dword [edx + 0xc]
mov edx, dword [eax]
mov ecx, dword [edi + 4]
mov dword [ecx + 4], edx
mov eax, dword [ebx + 0xaa78]
mov ecx, dword [eax + 0xc]
mov edx, dword [edi + 0xc]
mov eax, dword [ecx]
push edi
mov esi, ebx
mov dword [edx], eax
call fcn.004ca180
mov esi, eax
test esi, esi
jge 0x52cb0b
xor ecx, ecx
cmp word [edi + 0x3c], cx
je 0x52cee8
mov eax, dword [0x776138]
cmp eax, ecx
jge 0x52ceb0
xor eax, eax
jmp 0x52ceb7
xor edx, edx
mov ecx, dword [ebp - 0x14]
cmp ebx, ecx
je 0x52c865
xor eax, eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
or eax, 0xffffffff
cmp dword [ebp - 0xc], edx
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x8c]
mov dword [eax + ecx*4], 0xffffffff
mov dword [eax + ebx*4], 0xffffffff
mov dword [ebp + ecx*4 - 0x7c], edx
mov dword [ebp + ebx*4 - 0x7c], edx
mov byte [ebp - 5], 0
mov byte [ebp - 0x1d], 0
jbe 0x52c873
mov ecx, dword [ebp - 0xc]
lea edi, [ebp - 0xdc]
mov dword [ebp - 0x1c], ecx
lea esi, [ebp - 0x8c]
mov eax, edi
call fcn.0052bb60
mov byte [ebp - 0x29], al
lea esi, [ebp - 0x7c]
mov eax, edi
call fcn.0052bb60
cmp byte [ebp - 0x29], 0
jne 0x52c7f9
mov byte [ebp - 0x1d], 1
jmp 0x52c7fd
test al, al
jne 0x52c801
mov byte [ebp - 5], 1
add edi, 0x10
sub dword [ebp - 0x1c], 1
jne 0x52c7d3
cmp byte [ebp - 5], 0
je 0x52c873
cmp byte [ebp - 0x1d], 0
jne 0x52c865
mov eax, dword [ebp - 0x88]
mov edx, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x68], eax
or eax, 0xffffffff
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
or eax, eax
mov dword [ebp - 0x6c], edx
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
xor eax, eax
mov dword [ebp - 0x60], edx
mov dword [ebp + ecx*4 - 0x5c], eax
mov dword [ebp + ebx*4 - 0x4c], eax
mov byte [ebp - 0x1e], 1
add ebx, 1
cmp ebx, 4
jb 0x52c767
jmp 0x52c877
mov byte [ebp - 6], 1
mov eax, dword [ebp - 0x14]
add eax, 1
cmp eax, 4
mov dword [ebp - 0x14], eax
jb 0x52c62b
cmp byte [ebp - 6], 0
je 0x52c8c6
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
push 0
push 4
push edx
lea eax, [ebp - 0x8c]
push eax
push ecx
call fcn.0051b880
mov esi, eax
test esi, esi
jl 0x52cffb
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
push 0
push 4
push edx
lea eax, [ebp - 0x7c]
push eax
push ecx
jmp 0x52ca8e
cmp byte [ebp - 0x1e], 0
je 0x52caa3
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
push 0
push 4
push edx
lea eax, [ebp - 0x6c]
push eax
push ecx
call fcn.0051b880
mov esi, eax
test esi, esi
jl 0x52cffb
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
push 0
push 4
push edx
lea eax, [ebp - 0x5c]
push eax
push ecx
call fcn.0051b880
mov esi, eax
test esi, esi
jl 0x52cffb
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
push 0
push 4
push edx
lea eax, [ebp - 0x4c]
push eax
push ecx
call fcn.0051b880
mov esi, eax
test esi, esi
jl 0x52cffb
jmp 0x52cb0b
cmp eax, 3
jne 0x52cb42
cmp byte [ebp - 0x10], 0
jne 0x52cb4c
or ecx, 0xffffffff
mov dword [ebp - 0x10], ecx
xor eax, eax
lea ecx, [ecx]
cmp dword [ebp + eax*4 - 0xdc], ecx
jne 0x52c95c
mov dword [ebp - 0x10], eax
add eax, 1
cmp eax, 4
jb 0x52c950
mov dword [ebp - 0x14], 0
cmp byte [ebp - 6], 0
jne 0x52ca62
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
xor ebx, ebx
or edx, 0xffffffff
cmp byte [ebp - 6], 0
jne 0x52ca4d
cmp ebx, ecx
je 0x52ca41
cmp ebx, esi
je 0x52ca41
cmp ecx, esi
je 0x52ca41
mov eax, edx
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
xor eax, eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x8c]
mov dword [eax + ecx*4], 0
mov dword [eax + ebx*4], 0
mov dword [ebp + ecx*4 - 0x7c], edx
xor edi, edi
cmp dword [ebp - 0xc], edi
mov dword [ebp + ebx*4 - 0x7c], edx
mov dword [ebp + esi*4 - 0x7c], edx
mov byte [ebp - 5], 0
jbe 0x52ca32
lea edx, [ebp - 0xdc]
mov dword [ebp - 0x24], edx
cmp byte [ebp - 5], 0
jne 0x52ca38
mov eax, dword [ebp - 0x24]
lea esi, [ebp - 0x8c]
call fcn.0052bb60
test al, al
jne 0x52ca17
mov byte [ebp - 5], 1
add dword [ebp - 0x24], 0x10
add edi, 1
cmp edi, dword [ebp - 0xc]
jb 0x52c9fb
cmp byte [ebp - 5], 0
jne 0x52ca38
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
or edx, 0xffffffff
mov byte [ebp - 6], 1
jmp 0x52ca41
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
or edx, 0xffffffff
add ebx, 1
cmp ebx, 4
jb 0x52c980
add ecx, 1
cmp ecx, 4
mov dword [ebp - 0x14], ecx
jb 0x52c96b
cmp byte [ebp - 6], 0
je 0x52caa3
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp + 8]
push 0
push 3
push edi
lea eax, [ebp - 0x8c]
push eax
push ebx
call fcn.0051b880
mov esi, eax
test esi, esi
jl 0x52cffb
push 0
push 3
push edi
lea ecx, [ebp - 0x7c]
push ecx
push ebx
call fcn.0051b880
mov esi, eax
test esi, esi
jl 0x52cffb
cmp byte [ebp - 6], 0
jne 0x52cb0b
xor edi, edi
cmp dword [ebp - 0x18], edi
jbe 0x52cb0b
mov ebx, dword [ebp + 8]
lea ecx, [ecx]
mov edx, dword [ebx + 0xaa78]
or eax, 0xffffffff
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov eax, dword [edx + 0xc]
mov eax, dword [eax + edi*4]
mov ecx, dword [eax + 0x2c]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
push 0
push edx
mov dword [ebp + ecx*4 - 0x8c], 0
push eax
lea ecx, [ebp - 0x8c]
push ecx
push ebx
call fcn.0051b880
mov esi, eax
test esi, esi
jl 0x52cffb
add edi, 1
cmp edi, dword [ebp - 0x18]
jb 0x52cab0
mov eax, dword [ebp - 0x28]
xor edi, edi
cmp eax, edi
je 0x52cb2a
mov esi, dword [ebp + 8]
push eax
call fcn.004ca180
mov esi, eax
cmp esi, edi
jl 0x52cffb
mov dword [ebp - 0x28], edi
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xaa78]
mov dword [eax + 0x38], edi
mov dword [eax], edi
mov dword [eax + 8], edi
xor esi, esi
jmp 0x52cffb
cmp byte [ebp - 0x10], 0
je 0x52caa3
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp + 8]
push edx
push eax
lea ecx, [ebp - 0x34]
push ecx
mov eax, ebx
call fcn.0052bbf0
mov esi, eax
test esi, esi
jl 0x52cffb
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x52cb8c
push eax
mov esi, ebx
call fcn.004ca180
mov esi, eax
test esi, esi
jl 0x52cffb
mov dword [ebp - 0x34], 0
mov eax, dword [0x776138]
test eax, eax
jge 0x52cb99
xor eax, eax
jmp 0x52cba0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0x10], 0
je 0x52cbc7
mov ecx, dword [eax + 0x10]
test ecx, ecx
jne 0x52cbb1
mov edi, ecx
jmp 0x52cbd5
mov edx, dword [ecx]
test edx, edx
mov dword [eax + 0x10], edx
jne 0x52cbbd
mov dword [eax + 0x14], edx
mov dword [ecx], 0xfefefefe
mov edi, ecx
jmp 0x52cbd5
mov ecx, dword [eax + 0xc]
push 0x10
push 0x40
call fcn.007515ae
mov edi, eax
xor eax, eax
cmp edi, eax
je 0x52c641
or ecx, 0xffffffff
mov dword [edi], eax
mov dword [edi + 8], eax
mov dword [edi + 0x10], ecx
mov dword [edi + 0x38], eax
mov dword [edi + 4], eax
mov word [edi + 0x3c], ax
mov dword [edi + 0xc], eax
mov word [edi + 0x3e], ax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], ecx
mov dword [edi + 0x24], eax
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
mov edx, dword [ebx + 0x28fc]
push eax
mov dword [ebp - 0x1c], edx
lea edx, [eax + 1]
lea ecx, [eax + 2]
push edi
mov eax, 0x20500001
call fcn.004cc5e0
mov esi, eax
test esi, esi
jl 0x52cde8
mov eax, dword [ebx + 0xaa78]
fldz
mov ecx, dword [eax + 0x30]
sub esp, 8
fstp qword [esp]
mov dword [edi + 0x30], ecx
mov edx, dword [eax + 0x34]
mov ecx, dword [ebp - 0x1c]
push 0
mov dword [edi + 0x34], edx
mov eax, dword [ecx + 0x10]
push 0
push 0
lea edx, [eax + 1]
push eax
mov dword [ecx + 0x10], edx
mov eax, dword [ebx + 0x28fc]
push eax
lea ecx, [ebp - 0x10]
push ecx
push ebx
call fcn.004ca3c0
mov esi, eax
test esi, esi
jl 0x52cde8
mov edx, dword [edi + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
mov ecx, dword [ebx + 0xaa78]
mov edx, dword [ecx + 4]
mov ecx, dword [edx]
mov eax, dword [edi + 4]
mov dword [eax], ecx
mov edx, dword [ebx + 0xaa78]
mov eax, dword [edx + 4]
mov edx, dword [ebp - 0x18]
mov ecx, dword [edi + 4]
mov eax, dword [eax + edx*4]
push edi
mov esi, ebx
mov dword [ecx + 4], eax
call fcn.004ca180
mov esi, eax
test esi, esi
jl 0x52cde8
mov eax, 1
cmp dword [ebp - 0x18], eax
mov dword [ebp - 0x24], eax
jbe 0x52cb0b
mov ecx, dword [ebp - 0x18]
lea edx, [ecx*4 + 4]
mov dword [ebp - 0x30], edx
lea ebx, [ebx]
call fcn.004ce850
test eax, eax
je 0x52cde1
call fcn.004cc410
mov edi, eax
test edi, edi
je 0x52cde3
push 0
mov edx, 1
push edi
lea ecx, [edx + 2]
mov eax, 0x70300001
call fcn.004cc5e0
mov esi, eax
test esi, esi
jl 0x52cde8
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xaa78]
mov ecx, dword [eax + 0x30]
mov esi, dword [ebp - 0x30]
mov dword [edi + 0x30], ecx
mov edx, dword [eax + 0x34]
mov dword [edi + 0x34], edx
mov eax, dword [ebx + 0xaa78]
mov ecx, dword [eax + 4]
mov edx, dword [edi + 4]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ecx + eax*4]
mov dword [edx], ecx
mov edx, dword [ebx + 0xaa78]
mov ecx, dword [edx + 4]
mov edx, dword [edi + 4]
mov ecx, dword [esi + ecx]
mov dword [edx + 4], ecx
mov edx, dword [edi + 4]
mov ecx, dword [ebp - 0x10]
mov dword [edx + 8], ecx
mov edx, dword [ebp - 0x18]
add edx, 0xffffffff
cmp eax, edx
je 0x52cda8
fldz
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 0x10]
sub esp, 8
fstp qword [esp]
push 0
push 0
push 0
lea edx, [eax + 1]
push eax
mov dword [ecx + 0x10], edx
mov eax, dword [ebx + 0x28fc]
push eax
lea ecx, [ebp - 0x10]
push ecx
push ebx
call fcn.004ca3c0
mov esi, eax
test esi, esi
jl 0x52cde8
mov edx, dword [edi + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
jmp 0x52cdb8
mov ecx, dword [ebx + 0xaa78]
mov edx, dword [ecx + 0xc]
mov eax, dword [edi + 0xc]
mov ecx, dword [edx]
mov dword [eax], ecx
push edi
mov esi, ebx
call fcn.004ca180
mov esi, eax
test esi, esi
jl 0x52cde8
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x30], 4
add eax, 1
cmp eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
jb 0x52cce0
jmp 0x52cb0b
xor edi, edi
mov esi, 0x8007000e
xor ebx, ebx
cmp edi, ebx
je 0x52cffb
cmp word [edi + 0x3c], bx
je 0x52cf75
mov eax, dword [0x776138]
cmp eax, ebx
jge 0x52cf3f
xor eax, eax
jmp 0x52cf46
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xaa78]
push 0
push ecx
push eax
call fcn.004ca820
mov esi, eax
test esi, esi
jl 0x52cffb
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xaa78]
xor edi, edi
mov dword [eax + 0x38], edi
mov dword [eax], edi
mov dword [eax + 8], edi
mov eax, dword [ebp - 0x28]
cmp eax, edi
je 0x52ce59
push eax
call fcn.004ca180
mov esi, eax
cmp esi, edi
jl 0x52cffb
mov dword [ebp - 0x28], edi
xor esi, esi
jmp 0x52cffb
cmp edi, 0x50200000
je 0x52ce80
cmp edi, 0x70800000
je 0x52ce80
mov esi, 0x80004005
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor edi, edi
push edi
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.004ca820
mov esi, eax
cmp esi, edi
jl 0x52d1bf
mov eax, dword [ebx + 0xaa78]
mov dword [eax + 0x38], edi
mov dword [eax], edi
mov dword [eax + 8], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
movzx ecx, word [edi + 0x3c]
cmp ecx, dword [eax + 0x120]
ja 0x52cedf
mov edx, dword [edi + 4]
mov eax, dword [eax + 0x11c]
shl ecx, 4
test edx, edx
lea eax, [eax + ecx - 0x10]
je 0x52cedf
mov ecx, dword [eax + 4]
mov dword [edx], ecx
mov dword [eax + 4], edx
xor ecx, ecx
mov word [edi + 0x3c], cx
mov dword [edi + 4], ecx
cmp word [edi + 0x3e], cx
je 0x52cf33
mov eax, dword [0x776138]
cmp eax, ecx
jge 0x52cefb
xor eax, eax
jmp 0x52cf02
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
movzx ecx, word [edi + 0x3e]
cmp ecx, dword [eax + 0x120]
ja 0x52cf2a
mov edx, dword [edi + 0xc]
mov eax, dword [eax + 0x11c]
shl ecx, 4
test edx, edx
lea eax, [eax + ecx - 0x10]
je 0x52cf2a
mov ecx, dword [eax + 4]
mov dword [edx], ecx
mov dword [eax + 4], edx
xor ecx, ecx
mov word [edi + 0x3e], cx
mov dword [edi + 0xc], ecx
mov eax, dword [0x776138]
cmp eax, ecx
jmp 0x52cfc5
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
movzx ecx, word [edi + 0x3c]
cmp ecx, dword [eax + 0x120]
ja 0x52cf6e
mov edx, dword [edi + 4]
mov eax, dword [eax + 0x11c]
shl ecx, 4
cmp edx, ebx
lea eax, [eax + ecx - 0x10]
je 0x52cf6e
mov ecx, dword [eax + 4]
mov dword [edx], ecx
mov dword [eax + 4], edx
mov word [edi + 0x3c], bx
mov dword [edi + 4], ebx
cmp word [edi + 0x3e], bx
je 0x52cfbe
mov eax, dword [0x776138]
cmp eax, ebx
jge 0x52cf88
xor eax, eax
jmp 0x52cf8f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
movzx ecx, word [edi + 0x3e]
cmp ecx, dword [eax + 0x120]
ja 0x52cfb7
mov edx, dword [edi + 0xc]
mov eax, dword [eax + 0x11c]
shl ecx, 4
cmp edx, ebx
lea eax, [eax + ecx - 0x10]
je 0x52cfb7
mov ecx, dword [eax + 4]
mov dword [edx], ecx
mov dword [eax + 4], edx
mov word [edi + 0x3e], bx
mov dword [edi + 0xc], ebx
mov eax, dword [0x776138]
cmp eax, ebx
jl 0x52cffb
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x52cffb
push 0x40
push 0xfe
push edi
call sub.msvcrt.dll_memset
mov dword [edi], 0
mov eax, dword [ebx + 0x14]
add esp, 0xc
test eax, eax
je 0x52cff5
mov dword [eax], edi
jmp 0x52cff8
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], edi
mov edi, dword [ebp - 0x28]
xor ebx, ebx
cmp edi, ebx
je 0x52d0d9
cmp word [edi + 0x3c], bx
je 0x52d051
mov eax, dword [0x776138]
cmp eax, ebx
jge 0x52d01b
xor eax, eax
jmp 0x52d022
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
movzx ecx, word [edi + 0x3c]
cmp ecx, dword [eax + 0x120]
ja 0x52d04a
mov edx, dword [edi + 4]
mov eax, dword [eax + 0x11c]
shl ecx, 4
cmp edx, ebx
lea ecx, [eax + ecx - 0x10]
je 0x52d04a
mov eax, dword [ecx + 4]
mov dword [edx], eax
mov dword [ecx + 4], edx
mov word [edi + 0x3c], bx
mov dword [edi + 4], ebx
cmp word [edi + 0x3e], bx
je 0x52d09a
mov eax, dword [0x776138]
cmp eax, ebx
jge 0x52d064
xor eax, eax
jmp 0x52d06b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
movzx ecx, word [edi + 0x3e]
cmp ecx, dword [eax + 0x120]
ja 0x52d093
mov edx, dword [edi + 0xc]
mov eax, dword [eax + 0x11c]
shl ecx, 4
cmp edx, ebx
lea ecx, [eax + ecx - 0x10]
je 0x52d093
mov eax, dword [ecx + 4]
mov dword [edx], eax
mov dword [ecx + 4], edx
mov word [edi + 0x3e], bx
mov dword [edi + 0xc], ebx
mov eax, dword [0x776138]
cmp eax, ebx
jl 0x52d0d9
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x52d0d7
push 0x40
push 0xfe
push edi
call sub.msvcrt.dll_memset
mov dword [edi], 0
mov eax, dword [ebx + 0x14]
add esp, 0xc
test eax, eax
je 0x52d0d1
mov dword [eax], edi
jmp 0x52d0d4
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], edi
xor ebx, ebx
mov edi, dword [ebp - 0x34]
cmp edi, ebx
je 0x52d1bf
cmp word [edi + 0x3c], bx
je 0x52d12d
mov eax, dword [0x776138]
cmp eax, ebx
jge 0x52d0f7
xor eax, eax
jmp 0x52d0fe
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
movzx ecx, word [edi + 0x3c]
cmp ecx, dword [eax + 0x120]
ja 0x52d126
mov edx, dword [edi + 4]
mov eax, dword [eax + 0x11c]
shl ecx, 4
cmp edx, ebx
lea ecx, [eax + ecx - 0x10]
je 0x52d126
mov eax, dword [ecx + 4]
mov dword [edx], eax
mov dword [ecx + 4], edx
mov word [edi + 0x3c], bx
mov dword [edi + 4], ebx
cmp word [edi + 0x3e], bx
je 0x52d176
mov eax, dword [0x776138]
cmp eax, ebx
jge 0x52d140
xor eax, eax
jmp 0x52d147
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
movzx ecx, word [edi + 0x3e]
cmp ecx, dword [eax + 0x120]
ja 0x52d16f
mov edx, dword [edi + 0xc]
mov eax, dword [eax + 0x11c]
shl ecx, 4
cmp edx, ebx
lea ecx, [eax + ecx - 0x10]
je 0x52d16f
mov eax, dword [ecx + 4]
mov dword [edx], eax
mov dword [ecx + 4], edx
mov word [edi + 0x3e], bx
mov dword [edi + 0xc], ebx
mov eax, dword [0x776138]
cmp eax, ebx
jl 0x52d1bf
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x52d1bf
push 0x40
push 0xfe
push edi
call sub.msvcrt.dll_memset
mov dword [edi], 0
mov eax, dword [ebx + 0x14]
add esp, 0xc
test eax, eax
je 0x52d1b9
mov dword [eax], edi
mov dword [ebx + 0x14], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4