Function at 0x524840
Capabilities:
Authenticate hmac

Disassembly:
push 0xffffffffffffffff
push 0x598fc0
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0xc8], eax
push esi
push edi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0xdc]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
mov esi, dword [esp + 0xf4]
xorps xmm0, xmm0
movq qword [esp + 0x88], xmm0
mov dword [esp + 0x18], esi
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
call fcn.0040cb70
mov dword [esp + 0x88], eax
mov dword [esp + 0xe4], 4
mov edi, dword [esp + 0xec]
mov eax, edi
and eax, 1
or eax, 0
je 0x5249dc
xorps xmm0, xmm0
movdqu xmmword [esp + 0xbc], xmm0
movq qword [esp + 0xcc], xmm0
psrldq xmm0, 8
movd eax, xmm0
mov dword [esp + 0xc4], eax
and eax, 0xffffff00
mov dword [esp + 0xc4], eax
and eax, 0xfffffeff
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov byte [esp + 0xe4], 0xa
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0xc0]
push eax
call fcn.00528140
mov al, byte [esp + 0xc4]
test al, al
je 0x524964
cmp al, 6
je 0x524964
cmp al, 7
jne 0x524979
lea ecx, [esp + 0xbc]
call fcn.004f6f10
test eax, eax
sete al
test al, al
jne 0x5249c8
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x38]
call fcn.004f6040
mov byte [esp + 0xe4], 0xb
mov ecx, esi
push 0x5bf745
push 0x5bf740
call fcn.004f74a0
mov byte [esp + 0xe4], 0xc
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
call fcn.004f63a0
mov byte [esp + 0xe4], 0xa
lea ecx, [esp + 0x34]
call fcn.004f6200
mov byte [esp + 0xe4], 4
lea ecx, [esp + 0xbc]
call fcn.004f6200
mov eax, edi
and eax, 8
or eax, 0
je 0x524ae8
xorps xmm0, xmm0
movdqu xmmword [esp + 0xbc], xmm0
movq qword [esp + 0xcc], xmm0
psrldq xmm0, 8
movd eax, xmm0
mov dword [esp + 0xc4], eax
and eax, 0xffffff00
mov dword [esp + 0xc4], eax
and eax, 0xfffffeff
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov byte [esp + 0xe4], 0x12
lea eax, [esp + 0xbc]
push eax
call fcn.005283d0
mov al, byte [esp + 0xc4]
test al, al
je 0x524a70
cmp al, 6
je 0x524a70
cmp al, 7
jne 0x524a85
lea ecx, [esp + 0xbc]
call fcn.004f6f10
test eax, eax
sete al
test al, al
jne 0x524ad4
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x38]
call fcn.004f6040
mov byte [esp + 0xe4], 0x13
mov ecx, esi
push 0x5bf73d
push 0x5bf738
call fcn.004f74a0
mov byte [esp + 0xe4], 0x14
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
call fcn.004f63a0
mov byte [esp + 0xe4], 0x12
lea ecx, [esp + 0x34]
call fcn.004f6200
mov byte [esp + 0xe4], 4
lea ecx, [esp + 0xbc]
call fcn.004f6200
mov eax, edi
and eax, 0x10
or eax, 0
je 0x5252de
xorps xmm0, xmm0
movdqu xmmword [esp + 0xbc], xmm0
movq qword [esp + 0xcc], xmm0
psrldq xmm0, 8
movd eax, xmm0
mov dword [esp + 0xc4], eax
and eax, 0xffffff00
mov dword [esp + 0xc4], eax
and eax, 0xfffffeff
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov byte [esp + 0xe4], 0x1a
xor eax, eax
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
mov word [esp + 0x58], ax
mov byte [esp + 0xe4], 0x1b
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], eax
mov word [esp + 0x70], ax
mov byte [esp + 0xe4], 0x1d
lea ecx, [esp + 0xb8]
mov dword [esp + 0xb8], eax
call fcn.00548130
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0xbc]
call fcn.00548320
test al, al
je 0x524d16
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb0], 0xf
mov dword [esp + 0xac], 0
mov byte [esp + 0x9c], 0
mov byte [esp + 0xe4], 0x1e
lea eax, [esp + 0x9c]
cmp dword [esp + 0x84], 8
lea ecx, [esp + 0x70]
mov edx, dword [esp + 0x80]
cmovae ecx, dword [esp + 0x70]
push eax
call fcn.004b1140
mov edx, dword [esp + 0xb0]
lea ecx, [esp + 0xa0]
add esp, 4
mov byte [esp + 0x3c], 4
or dword [esp + 0x3c], 0x100
cmp dword [esp + 0xb0], 0x10
mov dword [esp + 0x40], 0
cmovae ecx, dword [esp + 0x9c]
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
call fcn.004f53a0
mov dword [esp + 0x34], eax
mov byte [esp + 0xe4], 0x1f
lea ecx, [esp + 0xbc]
push 0x5bf737
push 0x5bf730
call fcn.004f74a0
mov byte [esp + 0xe4], 0x20
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
call fcn.004f63a0
mov byte [esp + 0xe4], 0x1e
lea ecx, [esp + 0x34]
call fcn.004f6200
mov byte [esp + 0xe4], 0x1d
cmp dword [esp + 0xb0], 0x10
jb 0x524cf8
push dword [esp + 0x9c]
call fcn.00564de3
add esp, 4
mov dword [esp + 0xb0], 0xf
mov dword [esp + 0xac], 0
mov byte [esp + 0x9c], 0
xorps xmm0, xmm0
mov dword [esp + 0x98], 0
movq qword [esp + 0x90], xmm0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov byte [esp + 0xe4], 0x21
lea eax, [esp + 0x90]
push eax
call fcn.0053da00
xorps xmm0, xmm0
movdqu xmmword [esp + 0x9c], xmm0
movq qword [esp + 0xac], xmm0
psrldq xmm0, 8
movd esi, xmm0
mov dword [esp + 0xa4], esi
and esi, 0xffffff00
mov dword [esp + 0xa4], esi
and esi, 0xfffffeff
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov byte [esp + 0xe4], 0x27
mov eax, 0x2aaaaaab
mov ecx, dword [esp + 0x94]
sub ecx, dword [esp + 0x90]
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [esp + 0x50], ecx
je 0x524ffe
mov eax, dword [esp + 0x90]
mov dword [esp + 0xb8], eax
mov edi, dword [esp + 0x3c]
and edi, 0xffffff04
or edi, 4
mov dword [esp + 0x3c], edi
or edi, 0x100
mov dword [esp + 0x3c], edi
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
jb 0x524e40
mov eax, dword [eax]
mov ecx, eax
call fcn.004f53a0
mov dword [esp + 0x34], eax
mov byte [esp + 0xe4], 0x28
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x20]
call fcn.004f6040
mov byte [esp + 0xe4], 0x29
lea ecx, [esp + 0x9c]
call fcn.004f6f10
push eax
lea ecx, [esp + 0xa0]
call fcn.004f6fc0
mov esi, eax
mov byte [esp + 0xe4], 0x2a
movsx edx, byte [esi + 8]
mov cl, byte [esp + 0x24]
mov byte [esi + 8], cl
mov ecx, dword [esp + 0x24]
mov eax, ecx
xor eax, edx
and eax, 0xff
xor ecx, eax
mov dword [esp + 0x24], ecx
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x1c]
mov dword [esi], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 8]
xor eax, ecx
mov edx, ecx
and eax, 0x100
xor eax, ecx
shr edx, 8
mov dword [esi + 8], eax
and edx, 1
mov eax, dword [esp + 0x24]
shl edx, 8
xor edx, eax
and edx, 0x100
xor eax, edx
mov dword [esp + 0x24], eax
mov ecx, dword [esi + 0xc]
mov eax, dword [esp + 0x28]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x14], eax
mov dword [esp + 0x30], ecx
mov byte [esp + 0xe4], 0x28
movsx eax, byte [esp + 0x24]
cmp eax, 4
je 0x524f48
add eax, 0xfffffffa
cmp eax, 1
ja 0x524f5e
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x524f5e
push ecx
call fcn.004f6270
jmp 0x524f5e
test dword [esp + 0x24], 0x100
je 0x524f5e
push dword [esp + 0x1c]
call fcn.00564df7
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x524f82
push 0x4f5a90
push dword [eax - 4]
lea esi, [eax - 4]
push 4
push eax
call fcn.00564e2f
push esi
call fcn.0056503c
add esp, 4
xorps xmm0, xmm0
movlpd qword [esp + 0x1c], xmm0
mov byte [esp + 0xe4], 0x27
movsx eax, byte [esp + 0x3c]
cmp eax, 4
je 0x524fb7
add eax, 0xfffffffa
cmp eax, 1
ja 0x524fcc
mov eax, dword [esp + 0x34]
test eax, eax
je 0x524fcc
push ecx
mov ecx, eax
call fcn.004f6270
jmp 0x524fcc
test edi, 0x100
je 0x524fcc
mov eax, dword [esp + 0x34]
push eax
call fcn.00564df7
add esp, 4
mov eax, dword [esp + 0xb8]
xorps xmm0, xmm0
add eax, 0x18
movlpd qword [esp + 0x34], xmm0
dec dword [esp + 0x50]
mov dword [esp + 0xb8], eax
jne 0x524e02
mov esi, dword [esp + 0xa4]
mov edi, dword [esp + 0xec]
mov al, byte [esp + 0xa4]
test al, al
je 0x525011
cmp al, 6
je 0x525011
cmp al, 7
jne 0x525026
lea ecx, [esp + 0x9c]
call fcn.004f6f10
test eax, eax
sete al
test al, al
jne 0x52507a
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x38]
call fcn.004f6040
mov byte [esp + 0xe4], 0x2b
lea ecx, [esp + 0xbc]
push 0x5bf76c
push 0x5bf768
call fcn.004f74a0
mov byte [esp + 0xe4], 0x2c
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
call fcn.004f63a0
mov byte [esp + 0xe4], 0x27
lea ecx, [esp + 0x34]
call fcn.004f6200
mov al, byte [esp + 0xc4]
test al, al
je 0x52508d
cmp al, 6
je 0x52508d
cmp al, 7
jne 0x5250a2
lea ecx, [esp + 0xbc]
call fcn.004f6f10
test eax, eax
sete al
test al, al
jne 0x5250f3
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x38]
call fcn.004f6040
mov byte [esp + 0xe4], 0x2d
mov ecx, dword [esp + 0x18]
push 0x5bf765
push 0x5bf760
call fcn.004f74a0
mov byte [esp + 0xe4], 0x2e
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
call fcn.004f63a0
mov byte [esp + 0xe4], 0x27
lea ecx, [esp + 0x34]
call fcn.004f6200
mov byte [esp + 0xe4], 0x21
movsx eax, byte [esp + 0xa4]
cmp eax, 4
je 0x525123
add eax, 0xfffffffa
cmp eax, 1
ja 0x52513a
mov ecx, dword [esp + 0x9c]
test ecx, ecx
je 0x52513a
push ecx
call fcn.004f6270
jmp 0x52513a
test esi, 0x100
je 0x52513a
push dword [esp + 0x9c]
call fcn.00564df7
add esp, 4
mov eax, dword [esp + 0xa8]
test eax, eax
je 0x525161
push 0x4f5a90
push dword [eax - 4]
lea esi, [eax - 4]
push 4
push eax
call fcn.00564e2f
push esi
call fcn.0056503c
add esp, 4
xorps xmm0, xmm0
movlpd qword [esp + 0x9c], xmm0
mov byte [esp + 0xe4], 0x1d
mov eax, dword [esp + 0x90]
test eax, eax
je 0x5251ee
mov esi, eax
cmp eax, dword [esp + 0x94]
je 0x5251c4
jmp 0x525190
cmp dword [esi + 0x14], 0x10
jb 0x5251a0
push dword [esi]
call fcn.00564de3
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
add esi, 0x18
cmp esi, dword [esp + 0x94]
jne 0x525190
mov eax, dword [esp + 0x90]
push eax
call fcn.00564de3
add esp, 4
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov byte [esp + 0xe4], 0x2f
cmp dword [esp + 0x84], 8
jb 0x52520c
push dword [esp + 0x70]
call fcn.00564de3
add esp, 4
xor eax, eax
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], 0
mov word [esp + 0x70], ax
mov byte [esp + 0xe4], 0x1a
cmp dword [esp + 0x6c], 8
jb 0x525244
push dword [esp + 0x58]
call fcn.00564de3
add esp, 4
xor eax, eax
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
mov word [esp + 0x58], ax
mov byte [esp + 0xe4], 4
movsx eax, byte [esp + 0xc4]
cmp eax, 4
je 0x52528b
add eax, 0xfffffffa
cmp eax, 1
ja 0x5252a7
mov ecx, dword [esp + 0xbc]
test ecx, ecx
je 0x5252a7
push ecx
call fcn.004f6270
jmp 0x5252a7
test dword [esp + 0xc4], 0x100
je 0x5252a7
push dword [esp + 0xbc]
call fcn.00564df7
add esp, 4
mov eax, dword [esp + 0xc8]
test eax, eax
je 0x5252ce
push 0x4f5a90
push dword [eax - 4]
lea esi, [eax - 4]
push 4
push eax
call fcn.00564e2f
push esi
call fcn.0056503c
add esp, 4
mov esi, dword [esp + 0x18]
xorps xmm0, xmm0
movlpd qword [esp + 0xbc], xmm0
mov eax, edi
and eax, 0x20
or eax, 0
je 0x5253f2
xorps xmm0, xmm0
movdqu xmmword [esp + 0xbc], xmm0
movq qword [esp + 0xcc], xmm0
psrldq xmm0, 8
movd eax, xmm0
mov dword [esp + 0xc4], eax
and eax, 0xffffff00
mov dword [esp + 0xc4], eax
and eax, 0xfffffeff
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov byte [esp + 0xe4], 0x36
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0xc0]
push eax
call fcn.00528870
mov al, byte [esp + 0xc4]
test al, al
je 0x52537a
cmp al, 6
je 0x52537a
cmp al, 7
jne 0x52538f
lea ecx, [esp + 0xbc]
call fcn.004f6f10
test eax, eax
sete al
test al, al
jne 0x5253de
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x38]
call fcn.004f6040
mov byte [esp + 0xe4], 0x37
mov ecx, esi
push 0x5bf75d
push 0x5bf758
call fcn.004f74a0
mov byte [esp + 0xe4], 0x38
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
call fcn.004f63a0
mov byte [esp + 0xe4], 0x36
lea ecx, [esp + 0x34]
call fcn.004f6200
mov byte [esp + 0xe4], 4
lea ecx, [esp + 0xbc]
call fcn.004f6200
mov eax, edi
and eax, 4
or eax, 0
je 0x525406
mov ecx, dword [esp + 0x14]
push esi
call fcn.00529030
mov eax, edi
and eax, 0x40
or eax, 0
je 0x525516
xorps xmm0, xmm0
movdqu xmmword [esp + 0xbc], xmm0
movq qword [esp + 0xcc], xmm0
psrldq xmm0, 8
movd eax, xmm0
mov dword [esp + 0xc4], eax
and eax, 0xffffff00
mov dword [esp + 0xc4], eax
and eax, 0xfffffeff
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov byte [esp + 0xe4], 0x3e
lea eax, [esp + 0xbc]
mov ecx, dword [esp + 0x14]
push eax
call fcn.0052a880
mov al, byte [esp + 0xc4]
test al, al
je 0x52549e
cmp al, 6
je 0x52549e
cmp al, 7
jne 0x5254b3
lea ecx, [esp + 0xbc]
call fcn.004f6f10
test eax, eax
sete al
test al, al
jne 0x525502
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x38]
call fcn.004f6040
mov byte [esp + 0xe4], 0x3f
mov ecx, esi
push 0x5bf755
push 0x5bf750
call fcn.004f74a0
mov byte [esp + 0xe4], 0x40
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
call fcn.004f63a0
mov byte [esp + 0xe4], 0x3e
lea ecx, [esp + 0x34]
call fcn.004f6200
mov byte [esp + 0xe4], 4
lea ecx, [esp + 0xbc]
call fcn.004f6200
and edi, 0x800
or edi, 0
je 0x525623
xorps xmm0, xmm0
movdqu xmmword [esp + 0xbc], xmm0
movq qword [esp + 0xcc], xmm0
psrldq xmm0, 8
movd eax, xmm0
mov dword [esp + 0xc4], eax
and eax, 0xffffff00
mov dword [esp + 0xc4], eax
and eax, 0xfffffeff
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov byte [esp + 0xe4], 0x46
lea eax, [esp + 0xbc]
push eax
call fcn.0053aec0
mov al, byte [esp + 0xc4]
test al, al
je 0x5255ab
cmp al, 6
je 0x5255ab
cmp al, 7
jne 0x5255c0
lea ecx, [esp + 0xbc]
call fcn.004f6f10
test eax, eax
sete al
test al, al
jne 0x52560f
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x38]
call fcn.004f6040
mov byte [esp + 0xe4], 0x47
mov ecx, esi
push 0x5bf78d
push 0x5bf788
call fcn.004f74a0
mov byte [esp + 0xe4], 0x48
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
call fcn.004f63a0
mov byte [esp + 0xe4], 0x46
lea ecx, [esp + 0x34]
call fcn.004f6200
mov byte [esp + 0xe4], 4
lea ecx, [esp + 0xbc]
call fcn.004f6200
xorps xmm0, xmm0
movdqu xmmword [esp + 0xbc], xmm0
movq qword [esp + 0xcc], xmm0
psrldq xmm0, 8
movd eax, xmm0
mov dword [esp + 0xc4], eax
and eax, 0xffffff00
mov dword [esp + 0xc4], eax
and eax, 0xfffffeff
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov byte [esp + 0xe4], 0x4e
lea eax, [esp + 0xbc]
push eax
call fcn.0053be20
mov al, byte [esp + 0xc4]
test al, al
je 0x5256a9
cmp al, 6
je 0x5256a9
cmp al, 7
jne 0x5256be
lea ecx, [esp + 0xbc]
call fcn.004f6f10
test eax, eax
sete al
test al, al
jne 0x52570d
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x38]
call fcn.004f6040
mov byte [esp + 0xe4], 0x4f
mov ecx, esi
push 0x5bf785
push 0x5bf780
call fcn.004f74a0
mov byte [esp + 0xe4], 0x50
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
call fcn.004f63a0
mov byte [esp + 0xe4], 0x4e
lea ecx, [esp + 0x34]
call fcn.004f6200
mov byte [esp + 0xe4], 4
movsx eax, byte [esp + 0xc4]
cmp eax, 4
je 0x52576f
add eax, 0xfffffffa
cmp eax, 1
ja 0x52578b
mov esi, dword [esp + 0xbc]
mov dword [esp + 0x50], esi
test esi, esi
je 0x52578b
mov byte [esp + 0xe4], 0x52
mov ecx, esi
mov eax, dword [esi]
push eax
push dword [eax]
lea eax, [esp + 0xc0]
push eax
call fcn.004f8e60
mov byte [esp + 0xe4], 4
push dword [esi]
call fcn.00564de3
add esp, 4
push esi
call fcn.00564de3
jmp 0x525788
test dword [esp + 0xc4], 0x100
je 0x52578b
push dword [esp + 0xbc]
call fcn.00564df7
add esp, 4
mov eax, dword [esp + 0xc8]
test eax, eax
je 0x5257b2
push 0x4f5a90
push dword [eax - 4]
lea esi, [eax - 4]
push 4
push eax
call fcn.00564e2f
push esi
call fcn.0056503c
add esp, 4
xorps xmm0, xmm0
movlpd qword [esp + 0xbc], xmm0
call fcn.005457c0
mov cl, al
mov byte [esp + 0x24], 1
and dword [esp + 0x24], 0xfffffeff
xor eax, eax
test cl, cl
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
setne al
mov dword [esp + 0x30], 0
cdq
mov esi, eax
mov edi, edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edi
mov byte [esp + 0xe4], 0x55
mov ecx, dword [esp + 0x18]
push 0x5bf77d
push 0x5bf778
call fcn.004f74a0
mov dword [esp + 0x50], eax
mov byte [esp + 0xe4], 0x56
movsx edx, byte [eax + 8]
mov cl, byte [esp + 0x24]
mov byte [eax + 8], cl
mov ecx, dword [esp + 0x24]
xor ecx, edx
and ecx, 0xff
xor dword [esp + 0x24], ecx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0xb8], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov dword [ecx], esi
mov esi, ecx
mov dword [esi + 4], edi
mov ecx, dword [esi + 8]
mov edx, ecx
mov edi, dword [esp + 0xb8]
xor eax, ecx
shr edx, 8
and eax, 0x100
and edx, 1
mov dword [esp + 0x1c], edi
xor eax, ecx
shl edx, 8
mov ecx, dword [esp + 0x24]
xor edx, ecx
mov dword [esi + 8], eax
and edx, 0x100
xor ecx, edx
mov dword [esp + 0x24], ecx
mov edx, dword [esi + 0xc]
mov dword [esi + 0xc], 0
mov eax, dword [esi + 0x10]
mov dword [esi + 0x10], 0
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x50], edx
mov dword [esp + 0x28], edx
mov dword [esi + 0x14], 0
mov dword [esp + 0x30], eax
mov byte [esp + 0xe4], 4
movsx eax, cl
cmp eax, 4
je 0x52591a
add eax, 0xfffffffa
cmp eax, 1
ja 0x52592f
mov dword [esp + 0xb8], edi
test edi, edi
je 0x52592f
mov byte [esp + 0xe4], 0x58
mov ecx, edi
mov eax, dword [edi]
push eax
push dword [eax]
lea eax, [esp + 0x18]
push eax
call fcn.004f8e60
mov byte [esp + 0xe4], 4
push dword [edi]
call fcn.00564de3
add esp, 4
push edi
call fcn.00564de3
jmp 0x525928
test ecx, 0x100
je 0x52592f
push edi
call fcn.00564df7
mov edx, dword [esp + 0x54]
add esp, 4
test edx, edx
je 0x52594f
push 0x4f5a90
push dword [edx - 4]
lea esi, [edx - 4]
push 4
push edx
call fcn.00564e2f
push esi
call fcn.0056503c
add esp, 4
xorps xmm0, xmm0
mov dword [esp + 0xcc], 0
xor eax, eax
mov dword [esp + 0xd0], 0
movlpd qword [esp + 0x1c], xmm0
mov dword [esp + 0xd0], 7
mov dword [esp + 0xcc], 0
mov word [esp + 0xbc], ax
mov byte [esp + 0xe4], 0x5c
lea ecx, [esp + 0xbc]
mov eax, dword [esp + 0x14]
cmp ecx, eax
je 0x5259af
push 0xffffffffffffffff
push 0
push eax
call fcn.00404960
lea ecx, [esp + 0xbc]
call fcn.005533f0
lea ecx, [esp + 0xbc]
call fcn.00552890
mov byte [esp + 0x3c], 2
and dword [esp + 0x3c], 0xfffffeff
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 0
mov byte [esp + 0xe4], 0x5d
mov ecx, dword [esp + 0x18]
push 0x5bf775
push 0x5bf770
call fcn.004f74a0
mov byte [esp + 0xe4], 0x5e
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
call fcn.004f63a0
mov byte [esp + 0xe4], 0x5c
lea ecx, [esp + 0x34]
call fcn.004f6200
mov byte [esp + 0xe4], 4
cmp dword [esp + 0xd0], 8
jb 0x525a59
push dword [esp + 0xbc]
call fcn.00564de3
add esp, 4
xor eax, eax
mov dword [esp + 0xd0], 7
mov dword [esp + 0xcc], 0
mov word [esp + 0xbc], ax
mov dword [esp + 0xe4], 0x61
lea ecx, [esp + 0x88]
mov eax, dword [esp + 0x88]
push eax
push dword [eax]
lea eax, [esp + 0x18]
push eax
call fcn.0040c400
mov dword [esp + 0xe4], 0xffffffff
push dword [esp + 0x88]
call fcn.00564de3
add esp, 4
mov ecx, dword [esp + 0xdc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.00564de8
add esp, 0xdc
ret 0xc